Commit 14d5a478 authored by Tom Lane's avatar Tom Lane

Suppress uninitialized-variable warning.

parent 5cbf6dce
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* Copyright (c) 1996-2009, PostgreSQL Global Development Group * Copyright (c) 1996-2009, PostgreSQL Global Development Group
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/misc/rbtree.c,v 1.1 2010/02/11 14:29:50 teodor Exp $ * $PostgreSQL: pgsql/src/backend/utils/misc/rbtree.c,v 1.2 2010/02/11 22:17:27 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -320,6 +320,7 @@ rb_insert(RBTree *rb, void *data) ...@@ -320,6 +320,7 @@ rb_insert(RBTree *rb, void *data)
/* find where node belongs */ /* find where node belongs */
current = rb->root; current = rb->root;
parent = NULL; parent = NULL;
cmp = 0;
while (current != RBNIL) while (current != RBNIL)
{ {
cmp = rb->comparator(data, current->data, rb->arg); cmp = rb->comparator(data, current->data, rb->arg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment