summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-10-31 19:59:20 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-10-31 19:59:20 +0000
commitedbe0eda229f094f53837cc0e9595f6b55660360 (patch)
tree08f989a03218354d38b20352a14d1a750264fe33
parent67c0d89a2b07f8df3350bcf043445f57597c43e4 (diff)
downloadzsh-edbe0eda229f094f53837cc0e9595f6b55660360.tar.gz
zsh-edbe0eda229f094f53837cc0e9595f6b55660360.tar.xz
zsh-edbe0eda229f094f53837cc0e9595f6b55660360.zip
In parse_cadef(), the variable name oargs was re-defined in an inner
context, so I changed the name of the outer variable to orig_args.
-rw-r--r--Src/Zle/computil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c
index b76b7ad8a..8c1fa0800 100644
--- a/Src/Zle/computil.c
+++ b/Src/Zle/computil.c
@@ -1055,7 +1055,7 @@ parse_cadef(char *nam, char **args)
 {
     Cadef all, ret;
     Caopt *optp;
-    char **oargs = args, *p, *q, *match = "r:|[_-]=* r:|=*", **xor, **sargs;
+    char **orig_args = args, *p, *q, *match = "r:|[_-]=* r:|=*", **xor, **sargs;
     char *adpre, *adsuf, *axor = NULL, *doset = NULL, **setp = NULL;
     char *nonarg = NULL;
     int single = 0, anum = 1, xnum, nopts, ndopts, nodopts, flags = 0;
@@ -1127,7 +1127,7 @@ parse_cadef(char *nam, char **args)
 
     /* Looks good. Optimistically allocate the cadef structure. */
 
-    all = ret = alloc_cadef(oargs, single, match, nonarg, flags);
+    all = ret = alloc_cadef(orig_args, single, match, nonarg, flags);
     optp = &(ret->opts);
     anum = 1;