diff options
Diffstat (limited to 'function.c')
-rw-r--r-- | function.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1115,15 +1115,15 @@ func_if (o, argv, funcname) if (argv[0] != NULL && argv[1] != NULL) { char *expansion; - char **endp = argv+1; + char **argend = argv+1; /* If we're doing the else-clause, make sure we concatenate any potential extra arguments into the last argument. */ if (!result) - while (*endp && **endp != '\0') - ++endp; + while (argend[1]) + ++argend; - expansion = expand_argument (*argv, *endp-1); + expansion = expand_argument (*argv, *argend-1); o = variable_buffer_output (o, expansion, strlen (expansion)); free (expansion); |