Content-Length: 258165 | pFad | http://github.com/postgrespro/postgres/commit/f464042161fb980578c33fedc2742c5a4d941fa2

5F Silence compiler warning about variable being used uninitialized. · postgrespro/postgres@f464042 · GitHub
Skip to content

Commit f464042

Browse files
committed
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.
1 parent 2c03216 commit f464042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/nbtree/nbtxlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ btree_xlog_split(bool onleft, bool isroot, XLogReaderState *record)
269269
Page lpage = (Page) BufferGetPage(lbuf);
270270
BTPageOpaque lopaque = (BTPageOpaque) PageGetSpecialPointer(lpage);
271271
OffsetNumber off;
272-
Item newitem;
272+
Item newitem = NULL;
273273
Size newitemsz = 0;
274274
Page newlpage;
275275
OffsetNumber leftoff;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f464042161fb980578c33fedc2742c5a4d941fa2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy