changeset 970:bf375e93073b

Fix possible unitialized variable warnings
author mpm@selenic.com
date Sat, 20 Aug 2005 01:29:04 -0700
parents 1d5b97537561
children eac9c8efcd9b
files mercurial/bdiff.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;