Submitter | phabricator |
---|---|
Date | Jan. 17, 2018, 10:09 p.m. |
Message ID | <6669b65922fff2cf95d23898455e2425@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/26832/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c --- a/mercurial/bdiff.c +++ b/mercurial/bdiff.c @@ -41,7 +41,7 @@ if (p == plast) i++; - *lr = l = (struct bdiff_line *)malloc(sizeof(struct bdiff_line) * i); + *lr = l = (struct bdiff_line *)calloc(i, sizeof(struct bdiff_line)); if (!l) return -1;