summaryrefslogtreecommitdiff
path: root/function.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-11-17 07:33:47 +0000
committerPaul Smith <psmith@gnu.org>1999-11-17 07:33:47 +0000
commitebb733c0f9ab045b6fd6245df2baf2e87463e1bc (patch)
treebf5d793b4cc99724673804160f2e5e73889da8cc /function.c
parent3e26bde6dbc9a8a46d5a1a694e6810e689cbd25a (diff)
downloadgunmake-ebb733c0f9ab045b6fd6245df2baf2e87463e1bc.tar.gz
* Many cleanups and bugfixes.
* New handling of += in target-specific variables.
Diffstat (limited to 'function.c')
-rw-r--r--function.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/function.c b/function.c
index 1a08845..237214e 100644
--- a/function.c
+++ b/function.c
@@ -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);