Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 26e6c89

Browse files
committed
Fix compiler warning "res may be used uninitialized in this function".
Actually, it can't but some compilers are not smart enough. Per Peter Eisentraut gripe.
1 parent 8b4da40 commit 26e6c89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/tsvector_op.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.18 2008/11/17 12:17:09 teodor Exp $
10+
* $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.19 2008/11/19 10:23:21 teodor Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -812,7 +812,7 @@ insertStatEntry(MemoryContext persistentContext, TSVectorStat *stat, TSVector tx
812812
StatEntry *node = stat->root,
813813
*pnode=NULL;
814814
int n,
815-
res;
815+
res = 0;
816816
uint32 depth=1;
817817

818818
if (stat->weight == 0)

0 commit comments

Comments
 (0)