summaryrefslogtreecommitdiffstats
path: root/generic/tclStrIdxTree.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2018-05-29 16:42:27 (GMT)
committersebres <sebres@users.sourceforge.net>2018-05-29 16:42:27 (GMT)
commit2293dabf3fb64ff0242d48d8392bd260ecc9d64e (patch)
tree2a3c9dc933898f58e54a109a3eb40bfbd0188111 /generic/tclStrIdxTree.c
parent90c1f734c028199ce0da3849e73211d7e0ff7927 (diff)
downloadtcl-2293dabf3fb64ff0242d48d8392bd260ecc9d64e.zip
tcl-2293dabf3fb64ff0242d48d8392bd260ecc9d64e.tar.gz
tcl-2293dabf3fb64ff0242d48d8392bd260ecc9d64e.tar.bz2
Initialize prevf to fix (used before set) warning.
* Prevf doesn't get used at line 145 unless `prevItem != NULL` and prevf also gets set in the same block, so this is safe.
Diffstat (limited to 'generic/tclStrIdxTree.c')
-rw-r--r--generic/tclStrIdxTree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclStrIdxTree.c b/generic/tclStrIdxTree.c
index 83391ac..31e5413 100644
--- a/generic/tclStrIdxTree.c
+++ b/generic/tclStrIdxTree.c
@@ -86,7 +86,7 @@ TclStrIdxTreeSearch(
{
TclStrIdxTree *parent = tree, *prevParent = tree;
TclStrIdx *item = tree->firstPtr, *prevItem = NULL;
- const char *s = start, *f, *cin, *cinf, *prevf;
+ const char *s = start, *f, *cin, *cinf, *prevf = NULL;
int offs = 0;
if (item == NULL) {