Suppress uninitialized-variable warning.
authorTom Lane <[email protected]>
Thu, 11 Feb 2010 22:17:27 +0000 (22:17 +0000)
committerTom Lane <[email protected]>
Thu, 11 Feb 2010 22:17:27 +0000 (22:17 +0000)
src/backend/utils/misc/rbtree.c

index fd2b4d08487fcdf4f5384e01380a5bd159107706..713ef3a4ac729a4acaca24b0ea18ba87c86cf466 100644 (file)
@@ -320,6 +320,7 @@ rb_insert(RBTree *rb, void *data)
    /* find where node belongs */
    current = rb->root;
    parent = NULL;
+   cmp = 0;
    while (current != RBNIL)
    {
        cmp = rb->comparator(data, current->data, rb->arg);