mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
look_for_link: simplify string
Use stracpy(empty_string_or_(target_base)) instead of null_or_stracpy(target_base) and then stracpy("") if that returns NULL.
This commit is contained in:
parent
958b0d308d
commit
3b5724edd5
@ -533,8 +533,7 @@ look_for_link(unsigned char **pos, unsigned char *eof, struct menu_item **menu,
|
||||
}
|
||||
|
||||
target = get_target(options, attr);
|
||||
if (!target) target = null_or_stracpy(target_base);
|
||||
if (!target) target = stracpy("");
|
||||
if (!target) target = stracpy(empty_string_or_(target_base));
|
||||
if (!target) {
|
||||
mem_free_if(label);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user