# HG changeset patch # User mpm@selenic.com # Date 1124526544 25200 # Node ID bf375e93073b41b9577ed8ac6bb9df9aca7fb515 # Parent 1d5b975375613d934f4b5ab3c342dd8b030d94cd Fix possible unitialized variable warnings diff -r 1d5b97537561 -r bf375e93073b mercurial/bdiff.c --- a/mercurial/bdiff.c Sat Aug 20 00:49:41 2005 -0700 +++ b/mercurial/bdiff.c Sat Aug 20 01:29:04 2005 -0700 @@ -253,7 +253,7 @@ { 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 @@ { 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;