diff options
author | Paul Smith <psmith@gnu.org> | 1999-11-17 07:33:47 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-11-17 07:33:47 +0000 |
commit | ebb733c0f9ab045b6fd6245df2baf2e87463e1bc (patch) | |
tree | bf5d793b4cc99724673804160f2e5e73889da8cc /function.c | |
parent | 3e26bde6dbc9a8a46d5a1a694e6810e689cbd25a (diff) | |
download | gunmake-ebb733c0f9ab045b6fd6245df2baf2e87463e1bc.tar.gz |
* Many cleanups and bugfixes.
* New handling of += in target-specific variables.
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); |