From: Teodor Sigaev Date: Wed, 19 Nov 2008 10:23:21 +0000 (+0000) Subject: Fix compiler warning "res may be used uninitialized in this function". X-Git-Tag: recoveryinfrav9~323 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=a9f3139f7b5e3805f5173f58849d344596d84de4;p=users%2Fsimon%2Fpostgres.git 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. --- diff --git a/src/backend/utils/adt/tsvector_op.c b/src/backend/utils/adt/tsvector_op.c index 62904ebbf9..8234f856cf 100644 --- a/src/backend/utils/adt/tsvector_op.c +++ b/src/backend/utils/adt/tsvector_op.c @@ -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)