{"thread":{"id":"4619","subject":"[PATCH 2/3] xdiffi.c: squelch compiler warnings.","startedAt":"2006-06-22T18:58:14Z","lastAt":"2006-06-22T18:58:14Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"22291","messageId":"7v3bdxm309.fsf@assigned-by-dhcp.cox.net","threadId":"4619","inReplyTo":null,"subject":"[PATCH 2/3] xdiffi.c: squelch compiler warnings.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-06-22T18:58:14Z","receivedAt":"2006-06-22T18:58:14Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"From: Marco Roeland <marco.roeland@xs4all.nl>\n\nThis initializes a few variables that are judged to be used uninitialized\nby the compiler.\n---\n xdiffi.c |    5 +++--\n 1 files changed, 3 insertions(+), 2 deletions(-)\n\ndiff --git a/xdiffi.c b/xdiffi.c\nindex b1297d4..b95ade2 100644\n--- a/xdiffi.c\n+++ b/xdiffi.c\n@@ -220,7 +220,7 @@ static long xdl_split(unsigned long cons\n \t\tif (ec >= xenv->mxcost) {\n \t\t\tlong fbest, fbest1, bbest, bbest1;\n \n-\t\t\tfbest = -1;\n+\t\t\tfbest = fbest1 = -1;\n \t\t\tfor (d = fmax; d >= fmin; d -= 2) {\n \t\t\t\ti1 = XDL_MIN(kvdf[d], lim1);\n \t\t\t\ti2 = i1 - d;\n@@ -232,7 +232,7 @@ static long xdl_split(unsigned long cons\n \t\t\t\t}\n \t\t\t}\n \n-\t\t\tbbest = XDL_LINE_MAX;\n+\t\t\tbbest = bbest1 = XDL_LINE_MAX;\n \t\t\tfor (d = bmax; d >= bmin; d -= 2) {\n \t\t\t\ti1 = XDL_MAX(off1, kvdb[d]);\n \t\t\t\ti2 = i1 - d;\n@@ -298,6 +298,7 @@ int xdl_recs_cmp(diffdata_t *dd1, long o\n \t} else {\n \t\tlong ec;\n \t\txdpsplit_t spl;\n+\t\tspl.i1 = spl.i2 = 0;\n \n \t\t/*\n \t\t * Divide ...\n-- \n1.4.0.gbf9e\n"}]}