summaryrefslogtreecommitdiffstats
path: root/generic/tkFileFilter.c
diff options
context:
space:
mode:
authordas <das>2008-12-07 16:34:12 (GMT)
committerdas <das>2008-12-07 16:34:12 (GMT)
commitdad5f8c673f46f8a689841cdc0568fff52c5ef87 (patch)
treebc363e25b63d1114e0d291507eb02c7876149aa9 /generic/tkFileFilter.c
parent59bd7a0159445f73e970d56b2751c7b9a1924eca (diff)
downloadtk-dad5f8c673f46f8a689841cdc0568fff52c5ef87.zip
tk-dad5f8c673f46f8a689841cdc0568fff52c5ef87.tar.gz
tk-dad5f8c673f46f8a689841cdc0568fff52c5ef87.tar.bz2
Fix potential use of uninitialized variable flagged by clang static analyzer
Diffstat (limited to 'generic/tkFileFilter.c')
-rw-r--r--generic/tkFileFilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkFileFilter.c b/generic/tkFileFilter.c
index 94cdbcd..4e355d4 100644
--- a/generic/tkFileFilter.c
+++ b/generic/tkFileFilter.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkFileFilter.c,v 1.11 2008/04/27 22:38:56 dkf Exp $
+ * RCS: @(#) $Id: tkFileFilter.c,v 1.12 2008/12/07 16:34:12 das Exp $
*/
#include "tkInt.h"
@@ -338,7 +338,7 @@ AddClause(
globPtr->next = NULL;
}
}
- if (ostypeCount > 0 && ostypeList != NULL) {
+ if (ostypeList != NULL && ostypeCount > 0) {
if (macRoman == NULL) {
macRoman = Tcl_GetEncoding(NULL, "macRoman");
}