Patch from Ben Hutchings: explicitly initialise something which some
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 18 Apr 2010 15:07:52 +0000 (15:07 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 18 Apr 2010 15:07:52 +0000 (15:07 +0000)
gccs complained about.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8923 cda61777-01e9-0310-a592-d414129be87e

tree234.c

index 0010447..4b3151e 100644 (file)
--- a/tree234.c
+++ b/tree234.c
@@ -1160,7 +1160,7 @@ tree234 *join234r(tree234 *t1, tree234 *t2) {
  * in t.
  */
 static node234 *split234_internal(tree234 *t, int index) {
-    node234 *halves[2], *n, *sib, *sub;
+    node234 *halves[2] = { NULL, NULL }, *n, *sib, *sub;
     node234 *lparent, *rparent;
     int ki, pki, i, half, lcount, rcount;