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:
Hermet Park 2016-06-02 12:52:45 +09:00
parent d4a4a4da6c
commit 80e637ec89
1 changed files with 1 additions and 1 deletions

View File

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