Remove dead assignment and change condition for easier match.

SVN revision: 38344
This commit is contained in:
Cedric BAIL 2008-12-29 10:51:38 +00:00
parent a1a421f5ca
commit 69f1a6a61e
1 changed files with 1 additions and 2 deletions

View File

@ -469,7 +469,6 @@ eet_flush2(Eet_File *ef)
goto write_error;
/* write directories entry */
j = 0;
for (i = 0; i < num; i++)
{
for (efn = ef->header->directory->nodes[i]; efn; efn = efn->next)
@ -1924,7 +1923,7 @@ eet_delete(Eet_File *ef, const char *name)
if (efn->data)
free(efn->data);
if (efn == ef->header->directory->nodes[hash])
if (pefn == NULL)
ef->header->directory->nodes[hash] = efn->next;
else
pefn->next = efn->next;