summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/subst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 23c3a7bb5..12825ff93 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -1403,6 +1403,8 @@ check_colon_subscript(char *str, char **endp)
     if (parsestr(str = dupstring(str)))
 	return NULL;
     singsub(&str);
+    remnulargs(str);
+    untokenize(str);
 
     **endp = sav;
     return str;