summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index f28e83c..aec6eda 100644
--- a/variable.c
+++ b/variable.c
@@ -207,6 +207,7 @@ lookup_variable (name, length)
sptr++;
}
+ *nptr = '\0';
return define_variable (vname, length, nvalue, o_env, 1);
}