summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2007-09-17 15:03:42 (GMT)
committerdgp <dgp@users.sourceforge.net>2007-09-17 15:03:42 (GMT)
commit78f62882e23aacc0a133fd786ab338dab74f52aa (patch)
tree709de19e1422be87777185c53596320c09636f4d /unix/tclUnixFile.c
parent71e4e517adef8fec361cf29fe0267b8969397c5d (diff)
downloadtcl-78f62882e23aacc0a133fd786ab338dab74f52aa.zip
tcl-78f62882e23aacc0a133fd786ab338dab74f52aa.tar.gz
tcl-78f62882e23aacc0a133fd786ab338dab74f52aa.tar.bz2
merge updates from HEAD
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index e278eae..9e890c8 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.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: tclUnixFile.c,v 1.50 2006/08/29 00:36:57 coldstore Exp $
+ * RCS: @(#) $Id: tclUnixFile.c,v 1.50.6.1 2007/09/17 15:03:47 dgp Exp $
*/
#include "tclInt.h"
@@ -886,6 +886,9 @@ TclpObjLink(
Tcl_DecrRefCount(dirPtr);
} else {
target = Tcl_FSGetNativePath(toPtr);
+ if (target == NULL) {
+ return NULL;
+ }
if (access(target, F_OK) == -1) {
/*
* Target doesn't exist.
@@ -894,9 +897,6 @@ TclpObjLink(
errno = ENOENT;
return NULL;
}
- if (target == NULL) {
- return NULL;
- }
}
if (access(src, F_OK) != -1) {