Commit a90b2a03 authored by Tom Lane's avatar Tom Lane

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.
parent d1eb9fed
...@@ -791,7 +791,7 @@ CopyVar(SplitVar *s, int makedup) { ...@@ -791,7 +791,7 @@ CopyVar(SplitVar *s, int makedup) {
static SplitVar* static SplitVar*
SplitToVariants( IspellDict * Conf, SPNode *snode, SplitVar * orig, char *word, int wordlen, int startpos, int minpos ) { SplitToVariants( IspellDict * Conf, SPNode *snode, SplitVar * orig, char *word, int wordlen, int startpos, int minpos ) {
SplitVar *var=NULL; SplitVar *var=NULL;
SPNodeData *StopLow, *StopHigh, *StopMiddle; SPNodeData *StopLow, *StopHigh, *StopMiddle = NULL;
SPNode *node = (snode) ? snode : Conf->Dictionary; SPNode *node = (snode) ? snode : Conf->Dictionary;
int level=(snode) ? minpos : startpos; /* recursive minpos==level*/ int level=(snode) ? minpos : startpos; /* recursive minpos==level*/
int lenaff; int lenaff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment