mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
mem_free_set instead two lines
This commit is contained in:
parent
fa013b70ab
commit
48ba074969
@ -372,8 +372,7 @@ html_source(struct html_context *html_context, unsigned char *a,
|
|||||||
title = get_attr_val(a, "title", html_context->doc_cp);
|
title = get_attr_val(a, "title", html_context->doc_cp);
|
||||||
if (!title || !*title) {
|
if (!title || !*title) {
|
||||||
if (display_style == 3) {
|
if (display_style == 3) {
|
||||||
mem_free_if(title);
|
mem_free_set(&title, get_image_filename_from_src(options->image_link.filename_maxlen, src));
|
||||||
title = get_image_filename_from_src(options->image_link.filename_maxlen, src);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user