summaryrefslogtreecommitdiffstats
path: root/commands/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/global.c')
-rw-r--r--commands/global.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/commands/global.c b/commands/global.c
index 15b6a9f3d3..cf8e9a5b48 100644
--- a/commands/global.c
+++ b/commands/global.c
@@ -37,11 +37,7 @@ static int do_global(int argc, char *argv[])
return COMMAND_ERROR_USAGE;
for (i = 0; i < argc; i++) {
- value = strchr(argv[i], '=');
- if (value) {
- *value = 0;
- value++;
- }
+ value = parse_assignment(argv[i]);
if (do_remove)
globalvar_remove(argv[i]);