forked from enlightenment/enventor
image_preview: fix the broken image relay function.
this was introduced by e5ffff6872
i didn't catch the case which the string contains a single text.
This commit is contained in:
parent
d4a4a4da6c
commit
80e637ec89
|
@ -1528,7 +1528,7 @@ parser_name_get(parser_data *pd EINA_UNUSED, const char *cur)
|
|||
|
||||
//Don't find if the name is in the next lines.
|
||||
char *eol = strstr(cur, "\n");
|
||||
if (eol < p) return NULL;
|
||||
if (eol && (eol < p)) return NULL;
|
||||
|
||||
return strndup(p, (end - p));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue