changeset 3138 | cc856c4d91ca |
parent 2859 | 345bac2bc4ec |
child 4073 | 95ffa36d1d2a |
child 4358 | 11dc22eb8e8d |
--- a/mercurial/mpatch.c Thu Sep 21 16:15:39 2006 -0500 +++ b/mercurial/mpatch.c Thu Sep 21 16:16:39 2006 -0500 @@ -62,6 +62,9 @@ { struct flist *a = NULL; + if (size < 1) + size = 1; + a = (struct flist *)malloc(sizeof(struct flist)); if (a) { a->base = (struct frag *)malloc(sizeof(struct frag) * size);