summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-28 15:29:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-11-28 15:29:36 (GMT)
commit1df184e86080a75782e405775728a47498d90595 (patch)
tree18480a1ecaaf0ae9891296bd843a697954000fe6
parentb7e862c5654df82b0f5cff5fc9ab501022bfe4dd (diff)
downloadtcl-1df184e86080a75782e405775728a47498d90595.zip
tcl-1df184e86080a75782e405775728a47498d90595.tar.gz
tcl-1df184e86080a75782e405775728a47498d90595.tar.bz2
slightly simpler
-rw-r--r--generic/tclPkg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclPkg.c b/generic/tclPkg.c
index c3cc54e..c8f418c 100644
--- a/generic/tclPkg.c
+++ b/generic/tclPkg.c
@@ -570,8 +570,7 @@ PkgRequireCore(
pkgFiles->names = pkgName;
code = Tcl_EvalEx(interp, script, -1, TCL_EVAL_GLOBAL);
/* Pop the "ifneeded" package name from "tclPkgFiles" assocdata*/
- pkgName = pkgFiles->names;
- pkgFiles->names = pkgFiles->names->nextPtr;
+ pkgFiles->names = pkgName->nextPtr;
ckfree(pkgName);
Tcl_Release(script);