summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDialog.c
diff options
context:
space:
mode:
authordas <das@noemail.net>2007-11-08 17:37:34 (GMT)
committerdas <das@noemail.net>2007-11-08 17:37:34 (GMT)
commit202eeef550b760d91a4c1c1b769c519a25f80d18 (patch)
treea3cee17564eba33e89bda133e807640a34451013 /macosx/tkMacOSXDialog.c
parentc83fbd93dec8f330ba217c402868cb9861cd123a (diff)
downloadtk-202eeef550b760d91a4c1c1b769c519a25f80d18.zip
tk-202eeef550b760d91a4c1c1b769c519a25f80d18.tar.gz
tk-202eeef550b760d91a4c1c1b769c519a25f80d18.tar.bz2
fix warnings
FossilOrigin-Name: b81d5b52c02fcd4f6ef070745e9ef042cf781314
Diffstat (limited to 'macosx/tkMacOSXDialog.c')
-rw-r--r--macosx/tkMacOSXDialog.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c
index 0d83052..cb0d474 100644
--- a/macosx/tkMacOSXDialog.c
+++ b/macosx/tkMacOSXDialog.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.33 2007/10/26 10:35:33 das Exp $
+ * RCS: @(#) $Id: tkMacOSXDialog.c,v 1.34 2007/11/08 17:37:34 das Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -1110,7 +1110,7 @@ OpenFileFilterProc(
if (!theInfo->isFolder) {
OSType fileType;
- StringPtr fileNamePtr;
+ StringPtr fileNamePtr = NULL;
Tcl_DString fileNameDString;
int i;
FileFilter *filterPtr;
@@ -1126,7 +1126,6 @@ OpenFileFilterProc(
strncpy(fileName, (char*) fileNamePtr + 1, len);
fileName[len] = '\0';
fileNamePtr = (unsigned char*) fileName;
-
} else if ((theItem->descriptorType == typeFSRef)) {
OSStatus err;
FSRef *theRef = (FSRef *) *theItem->dataHandle;
@@ -1140,8 +1139,6 @@ OpenFileFilterProc(
uniFileName.length, &fileNameDString);
fileNamePtr = (unsigned char*)
Tcl_DStringValue(&fileNameDString);
- } else {
- fileNamePtr = NULL;
}
}
if (ofdPtr->usePopup) {