Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a90b2a0

Browse files
committed
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.
1 parent d1eb9fe commit a90b2a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/tsearch2/ispell/spell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ CopyVar(SplitVar *s, int makedup) {
791791
static SplitVar*
792792
SplitToVariants( IspellDict * Conf, SPNode *snode, SplitVar * orig, char *word, int wordlen, int startpos, int minpos ) {
793793
SplitVar *var=NULL;
794-
SPNodeData *StopLow, *StopHigh, *StopMiddle;
794+
SPNodeData *StopLow, *StopHigh, *StopMiddle = NULL;
795795
SPNode *node = (snode) ? snode : Conf->Dictionary;
796796
int level=(snode) ? minpos : startpos; /* recursive minpos==level*/
797797
int lenaff;

0 commit comments

Comments
 (0)