summaryrefslogtreecommitdiffstats
path: root/generic/tkFileFilter.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2009-03-03 23:54:10 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2009-03-03 23:54:10 (GMT)
commite3cc01895622b0949e83b829d84a4cb1fbedce4f (patch)
tree2150e64df587ef3521125c107097d1e3a3d81c9d /generic/tkFileFilter.c
parenta072beb6c3788ba0416b47a505dddd7b73744535 (diff)
downloadtk-e3cc01895622b0949e83b829d84a4cb1fbedce4f.zip
tk-e3cc01895622b0949e83b829d84a4cb1fbedce4f.tar.gz
tk-e3cc01895622b0949e83b829d84a4cb1fbedce4f.tar.bz2
Backported some fixes for uninitialized variables identified by das using clang analysis.
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 06e63d6..21e6a93 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.10 2007/05/09 12:51:30 das Exp $
+ * RCS: @(#) $Id: tkFileFilter.c,v 1.10.4.1 2009/03/03 23:54:11 patthoyts 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");
}