From: Heikki Linnakangas Date: Thu, 20 Nov 2014 17:16:12 +0000 (+0200) Subject: Silence compiler warning about variable being used uninitialized. X-Git-Tag: REL9_5_ALPHA1~1179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f464042161fb980578c33fedc2742c5a4d941fa2;p=postgresql Silence compiler warning about variable being used uninitialized. It's a false positive - the variable is only used when 'onleft' is true, and it is initialized in that case. But the compiler doesn't necessarily see that. --- diff --git a/src/backend/access/nbtree/nbtxlog.c b/src/backend/access/nbtree/nbtxlog.c index 52aef9b983..416c5fc6b3 100644 --- a/src/backend/access/nbtree/nbtxlog.c +++ b/src/backend/access/nbtree/nbtxlog.c @@ -269,7 +269,7 @@ btree_xlog_split(bool onleft, bool isroot, XLogReaderState *record) Page lpage = (Page) BufferGetPage(lbuf); BTPageOpaque lopaque = (BTPageOpaque) PageGetSpecialPointer(lpage); OffsetNumber off; - Item newitem; + Item newitem = NULL; Size newitemsz = 0; Page newlpage; OffsetNumber leftoff;