Skip to content

Commit

Permalink
More logic bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 27, 2004
1 parent a0a60cd commit f36eafa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mojopatch.c
Expand Up @@ -367,7 +367,7 @@ static int serialize_patch_op(SerialArchive *ar, void *d)
assert(patch->operation == OPERATION_PATCH);
if (serialize_static_string(ar, patch->fname))
if (SERIALIZE(ar, patch->md5_1))
if (SERIALIZE(ar, patch->md5_1))
if (SERIALIZE(ar, patch->md5_2))
if (SERIALIZE(ar, patch->fsize))
if (SERIALIZE(ar, patch->deltasize))
if (SERIALIZE(ar, patch->mode))
Expand Down Expand Up @@ -1856,14 +1856,15 @@ static int process_patch_header(SerialArchive *ar, PatchHeader *h)
} /* if */
} /* if */

if (h->readmedata)
if (*h->readmefname)
{
if (!info_only())
retval = show_and_install_readme(h->readmefname, h->readmedata);
free(h->readmedata);
h->readmedata = NULL;
} /* if */

free(h->readmedata);
h->readmedata = NULL;

return(retval);
} /* process_patch_header */

Expand Down

0 comments on commit f36eafa

Please sign in to comment.