forked from enlightenment/efl
parent
150d857e6f
commit
7176001239
|
@ -680,10 +680,10 @@ efreet_mime_shared_mimeinfo_magic_load(const char *file)
|
|||
/* Check for magic string. Will also move us to first section */
|
||||
if (fread(buf, 1, 12, f))
|
||||
{
|
||||
if (memcmp(buf, "MIME-Magic\0\n", 12)) return;
|
||||
if (memcmp(buf, "MIME-Magic\0\n", 12))
|
||||
return;
|
||||
}
|
||||
|
||||
/* Begin reading in sections and mime data */
|
||||
while ((bytes_read = fread(buf, 1, sizeof(buf), f)))
|
||||
{
|
||||
for (i = 0; i < bytes_read; )
|
||||
|
@ -850,7 +850,7 @@ efreet_mime_shared_mimeinfo_magic_load(const char *file)
|
|||
if (m && !(strcmp(m->mime,mimetype)))
|
||||
ecore_list_remove_destroy(magics);
|
||||
|
||||
IF_FREE(mime);
|
||||
FREE(mime);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -861,7 +861,7 @@ efreet_mime_shared_mimeinfo_magic_load(const char *file)
|
|||
{
|
||||
IF_FREE(entry->value);
|
||||
IF_FREE(entry->mask);
|
||||
IF_FREE(entry);
|
||||
FREE(entry);
|
||||
}
|
||||
|
||||
fseek(f, last_section-4096, SEEK_CUR);
|
||||
|
@ -899,7 +899,7 @@ efreet_mime_shared_mimeinfo_magic_load(const char *file)
|
|||
{
|
||||
IF_FREE(entry->value);
|
||||
IF_FREE(entry->mask);
|
||||
IF_FREE(entry);
|
||||
FREE(entry);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue