]> granicus.if.org Git - postgresql/commitdiff
Fix spurious compiler warning in nbtxlog.c.
authorPeter Geoghegan <pg@bowt.ie>
Wed, 20 Mar 2019 21:04:35 +0000 (14:04 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Wed, 20 Mar 2019 21:04:35 +0000 (14:04 -0700)
Cleanup from commit dd299df8.

Per complaint from Tom Lane.

src/backend/access/nbtree/nbtxlog.c

index 7f261db9017501c96e0bb5dd7c643cecd5e888e1..ff262ff5c9a9c59bcdc6b1530ee18094bbd2a97d 100644 (file)
@@ -266,10 +266,10 @@ btree_xlog_split(bool onleft, XLogReaderState *record)
                Page            lpage = (Page) BufferGetPage(lbuf);
                BTPageOpaque lopaque = (BTPageOpaque) PageGetSpecialPointer(lpage);
                OffsetNumber off;
-               IndexTuple      newitem,
-                                       left_hikey;
-               Size            newitemsz,
-                                       left_hikeysz;
+               IndexTuple      newitem = NULL,
+                                       left_hikey = NULL;
+               Size            newitemsz = 0,
+                                       left_hikeysz = 0;
                Page            newlpage;
                OffsetNumber leftoff;