mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -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
a191b4dc31
commit
2cab7a5455
@ -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