diff options
author | harti <harti@FreeBSD.org> | 2005-05-24 15:58:35 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-05-24 15:58:35 +0000 |
commit | 79613308dce9cef12aa10cea972360bae9c444f3 (patch) | |
tree | 0da9d886dad87a41f07234fde57509940807459f /usr.bin/make/cond.c | |
parent | 910dc606b98c3d428364a2e4a51431f0cc14bcce (diff) | |
download | FreeBSD-src-79613308dce9cef12aa10cea972360bae9c444f3.zip FreeBSD-src-79613308dce9cef12aa10cea972360bae9c444f3.tar.gz |
Get rid of the third argument to Var_Value() the pointer it pointed
to has always been set to NULL for some time now.
Obtained from: DragonFlyBSD
Diffstat (limited to 'usr.bin/make/cond.c')
-rw-r--r-- | usr.bin/make/cond.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/make/cond.c b/usr.bin/make/cond.c index bed2c57..1066ae4 100644 --- a/usr.bin/make/cond.c +++ b/usr.bin/make/cond.c @@ -283,16 +283,14 @@ static Boolean CondDoDefined(int argLen, char *arg) { char savec = arg[argLen]; - char *p1; Boolean result; arg[argLen] = '\0'; - if (Var_Value(arg, VAR_CMD, &p1) != NULL) { + if (Var_Value(arg, VAR_CMD) != NULL) { result = TRUE; } else { result = FALSE; } - free(p1); arg[argLen] = savec; return (result); } |