projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5fe7ca
)
Fix compiler warning "res may be used uninitialized in this function".
author
Teodor Sigaev
<teodor@sigaev.ru>
Wed, 19 Nov 2008 10:23:21 +0000
(10:23 +0000)
committer
Teodor 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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/tsvector_op.c
b/src/backend/utils/adt/tsvector_op.c
index 62904ebbf9f23a05efa3c80f21b992b734277fdc..8234f856cf84dda938ac831c3e3e8e3ea0a22ef0 100644
(file)
--- 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)