Do not queue empty types
This commit is contained in:
parent
597e23880c
commit
e55c373f13
|
@ -287,6 +287,8 @@ String ** mimehandler_get_types(MimeHandler * handler)
|
|||
for(p = strtok_r(q, ":", &last); p != NULL;
|
||||
p = strtok_r(NULL, ":", &last))
|
||||
{
|
||||
if(strlen(p) == 0)
|
||||
continue;
|
||||
if((r = realloc(ret, sizeof(*ret) * (cnt + 1))) != NULL)
|
||||
{
|
||||
ret = r;
|
||||
|
|
Loading…
Reference in New Issue
Block a user