diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2008-11-19 10:23:21 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2008-11-19 10:23:21 +0000 |
commit | 26e6c896c946bc1a9e9f608b2c7463be1e8c6291 (patch) | |
tree | 17b815d62fa97ec5868f4ef734d1ec89fcab322c /src | |
parent | 8b4da404878ede01c16868f31fb666985b896034 (diff) | |
download | postgresql-26e6c896c946bc1a9e9f608b2c7463be1e8c6291.tar.gz postgresql-26e6c896c946bc1a9e9f608b2c7463be1e8c6291.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/adt/tsvector_op.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/tsvector_op.c b/src/backend/utils/adt/tsvector_op.c index 5cb4f4f1d9d..1c3cc343ac1 100644 --- a/src/backend/utils/adt/tsvector_op.c +++ b/src/backend/utils/adt/tsvector_op.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.18 2008/11/17 12:17:09 teodor Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector_op.c,v 1.19 2008/11/19 10:23:21 teodor Exp $ * *------------------------------------------------------------------------- */ @@ -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) |