# HG changeset patch # User mpm@selenic.com # Date 2005-08-20 08:29:04 # Node ID bf375e93073b41b9577ed8ac6bb9df9aca7fb515 # Parent 1d5b975375613d934f4b5ab3c342dd8b030d94cd Fix possible unitialized variable warnings diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c --- a/mercurial/bdiff.c +++ b/mercurial/bdiff.c @@ -253,7 +253,7 @@ static PyObject *blocks(PyObject *self, { PyObject *sa, *sb, *rl = NULL, *m; struct line *a, *b; - struct hunklist l; + struct hunklist l = {NULL, NULL}; struct hunk *h; int an, bn, pos = 0; @@ -287,7 +287,7 @@ static PyObject *bdiff(PyObject *self, P { PyObject *sa, *sb, *result = NULL; struct line *al, *bl; - struct hunklist l; + struct hunklist l = {NULL, NULL}; struct hunk *h; char encode[12], *rb; int an, bn, len = 0, la = 0, lb = 0;