Skip to content

Commit 14d5a47

Browse files
committed
Suppress uninitialized-variable warning.
1 parent 5cbf6dc commit 14d5a47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/utils/misc/rbtree.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* Copyright (c) 1996-2009, PostgreSQL Global Development Group
2121
*
2222
* IDENTIFICATION
23-
* $PostgreSQL: pgsql/src/backend/utils/misc/rbtree.c,v 1.1 2010/02/11 14:29:50 teodor Exp $
23+
* $PostgreSQL: pgsql/src/backend/utils/misc/rbtree.c,v 1.2 2010/02/11 22:17:27 tgl Exp $
2424
*
2525
*-------------------------------------------------------------------------
2626
*/
@@ -320,6 +320,7 @@ rb_insert(RBTree *rb, void *data)
320320
/* find where node belongs */
321321
current = rb->root;
322322
parent = NULL;
323+
cmp = 0;
323324
while (current != RBNIL)
324325
{
325326
cmp = rb->comparator(data, current->data, rb->arg);

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