diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-05-07 13:09:12 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-05-07 13:09:12 +0000 |
commit | a90b2a035ff1bea75eda3372d513e07020293328 (patch) | |
tree | 7dbf0337abbfb5f114e18f33a482c83eaf668b22 | |
parent | d1eb9fede58e7e61b8e81cd77389ededf03ca938 (diff) |
Suppress 'uninitialized variable' warning emitted by some (not all)
versions of gcc. The code is correct AFAICS, but it requires slightly
more analysis than usual to see that the variable can't be used uninitialized.
-rw-r--r-- | contrib/tsearch2/ispell/spell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tsearch2/ispell/spell.c b/contrib/tsearch2/ispell/spell.c index 10b0ca9e40a..416acf77974 100644 --- a/contrib/tsearch2/ispell/spell.c +++ b/contrib/tsearch2/ispell/spell.c @@ -791,7 +791,7 @@ CopyVar(SplitVar *s, int makedup) { static SplitVar* SplitToVariants( IspellDict * Conf, SPNode *snode, SplitVar * orig, char *word, int wordlen, int startpos, int minpos ) { SplitVar *var=NULL; - SPNodeData *StopLow, *StopHigh, *StopMiddle; + SPNodeData *StopLow, *StopHigh, *StopMiddle = NULL; SPNode *node = (snode) ? snode : Conf->Dictionary; int level=(snode) ? minpos : startpos; /* recursive minpos==level*/ int lenaff; |