Fix compiler warning "res may be used uninitialized in this function".
authorTeodor Sigaev <teodor@sigaev.ru>
Wed, 19 Nov 2008 10:23:21 +0000 (10:23 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Wed, 19 Nov 2008 10:23:21 +0000 (10:23 +0000)
Actually, it can't but some compilers are not smart enough.
Per Peter Eisentraut gripe.

src/backend/utils/adt/tsvector_op.c

index 62904ebbf9f23a05efa3c80f21b992b734277fdc..8234f856cf84dda938ac831c3e3e8e3ea0a22ef0 100644 (file)
@@ -812,7 +812,7 @@ insertStatEntry(MemoryContext persistentContext, TSVectorStat *stat, TSVector tx
        StatEntry       *node = stat->root, 
                                *pnode=NULL;
        int                     n,
-                               res;
+                               res = 0;
        uint32          depth=1;
 
        if (stat->weight == 0)