diff options
| author | hobbs <hobbs> | 2006-08-30 17:56:57 (GMT) |
|---|---|---|
| committer | hobbs <hobbs> | 2006-08-30 17:56:57 (GMT) |
| commit | 4d2635c3372e83def07aa54925a2ac5b58e61577 (patch) | |
| tree | f241945651c69aab3a1403a793562635b1a56441 | |
| parent | eb054a4cf3a4a03e157514062283da924dbfaea0 (diff) | |
| download | tcl-4d2635c3372e83def07aa54925a2ac5b58e61577.zip tcl-4d2635c3372e83def07aa54925a2ac5b58e61577.tar.gz tcl-4d2635c3372e83def07aa54925a2ac5b58e61577.tar.bz2 | |
* generic/tclFileName.c (DoGlob): match incrs with decrs.
| -rw-r--r-- | generic/tclFileName.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c index 27af639..ec872d0 100644 --- a/generic/tclFileName.c +++ b/generic/tclFileName.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: tclFileName.c,v 1.74 2006/03/19 23:04:23 vincentdarley Exp $ + * RCS: @(#) $Id: tclFileName.c,v 1.75 2006/08/30 17:56:57 hobbs Exp $ */ #include "tclInt.h" @@ -1828,6 +1828,7 @@ TclGlob( Tcl_IncrRefCount(savedResultObj); Tcl_ResetResult(interp); TclNewObj(filenamesObj); + Tcl_IncrRefCount(filenamesObj); /* * Now we do the actual globbing, adding filenames as we go to buffer in @@ -2290,6 +2291,7 @@ DoGlob( *p = '\0'; TclNewObj(subdirsPtr); + Tcl_IncrRefCount(subdirsPtr); result = Tcl_FSMatchInDirectory(interp, subdirsPtr, pathPtr, pattern, &dirOnly); *p = save; |
