Skip to content

Commit c63d4ea

Browse files
author
Zakirov Artur
committed
Fix warning #6: ‘state’ may be used uninitialized in this function [-Wmaybe-uninitialized]
1 parent 9c7bf36 commit c63d4ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rumbtree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ rumInsertValue(Relation index, RumBtree btree, RumBtreeStack * stack,
374374
Page page,
375375
rpage,
376376
lpage;
377-
GenericXLogState *state;
377+
GenericXLogState *state = NULL;
378378

379379
/* extract root BlockNumber from stack */
380380
Assert(stack != NULL);

ruminsert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ createPostingTree(RumState * rumstate, OffsetNumber attnum, Relation index,
4747
int i;
4848
Pointer ptr;
4949
ItemPointerData prev_iptr = {{0, 0}, 0};
50-
GenericXLogState *state;
50+
GenericXLogState *state = NULL;
5151

5252
if (rumstate->isBuild)
5353
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy