1
0
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:
Miciah Dashiel Butler Masters 2006-01-18 20:38:33 +00:00 committed by Miciah Dashiel Butler Masters
parent 958b0d308d
commit 3b5724edd5

View File

@ -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;