summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-06-20 19:31:05 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-06-20 19:31:05 (GMT)
commit9c05483fcbef142cb5fbd9246956104ca475742c (patch)
tree974b996fd0d221e828a370100264a0a28bf8571b /generic
parent248348175af7704dabfbd15c9f1b9cb0645db450 (diff)
parentb4bfd9a64a9a53cfbbd8a729a9a7ce7a0bcf95d0 (diff)
downloadtcl-9c05483fcbef142cb5fbd9246956104ca475742c.zip
tcl-9c05483fcbef142cb5fbd9246956104ca475742c.tar.gz
tcl-9c05483fcbef142cb5fbd9246956104ca475742c.tar.bz2
[c383ebb5e4] Match DStringInit and DStringFree properly.
Diffstat (limited to 'generic')
-rw-r--r--generic/tclFileName.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index 39bac99..bf463f5 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -1595,8 +1595,8 @@ Tcl_GlobObjCmd(
} else if (dir == PATH_GENERAL) {
Tcl_DString str;
+ Tcl_DStringInit(&str);
for (i = 0; i < objc; i++) {
- Tcl_DStringInit(&str);
if (dir == PATH_GENERAL) {
TclDStringAppendDString(&str, &prefix);
}