chiark / gitweb /
Patch from Ben Hutchings: explicitly initialise something which some
authorSimon Tatham <anakin@pobox.com>
Sun, 18 Apr 2010 15:07:52 +0000 (15:07 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 18 Apr 2010 15:07:52 +0000 (15:07 +0000)
gccs complained about.

[originally from svn r8923]

tree234.c

index 001044780ce9cad42e8b31ae4ce7a4f50d1d179f..4b3151ee2f65c5d3793be15a43623d162511b313 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;