Subject: Consolidate the StartExpanding() calls.

From: dgp <[email-masked]>
Date: Mon, 8 Jul 2013 15:00:02 +0000

---
 generic/tclCompile.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 0dc30e2..cbb93d9 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -1819,9 +1819,6 @@ CompileCommandTokens(
     envPtr->line = eclPtr->loc[wlineat].line[0];
     envPtr->clNext = eclPtr->loc[wlineat].next[0];
 
-    if (expand && !cmdPtr) {
-	StartExpanding(envPtr);
-    }
     if (cmdPtr) {
 	int savedNumCmds = envPtr->numCommands;
 	int update = 0;
@@ -1919,11 +1916,10 @@ CompileCommandTokens(
 
 	envPtr->line = eclPtr->loc[wlineat].line[0];
 	envPtr->clNext = eclPtr->loc[wlineat].next[0];
+    }
 
-	/* TODO: Can this happen?  If so, is this right? */
-	if (expand) {
-	    StartExpanding(envPtr);
-	}
+    if (expand) {
+	StartExpanding(envPtr);
     }
 
     /*
-- 
cgit v0.12