1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

mem_free_set instead two lines

This commit is contained in:
Witold Filipczyk 2017-11-23 10:33:10 +01:00
parent fa013b70ab
commit 48ba074969

View File

@ -372,8 +372,7 @@ html_source(struct html_context *html_context, unsigned char *a,
title = get_attr_val(a, "title", html_context->doc_cp);
if (!title || !*title) {
if (display_style == 3) {
mem_free_if(title);
title = get_image_filename_from_src(options->image_link.filename_maxlen, src);
mem_free_set(&title, get_image_filename_from_src(options->image_link.filename_maxlen, src));
}
}