mirror of
https://github.com/mirror/make.git
synced 2025-03-28 13:00:47 +08:00
* function.c (func_if): Check the first character of condition.
Reported by Rob W <robw9739@gmail.com>
This commit is contained in:
parent
193f1e81ed
commit
b9c25de370
@ -1245,7 +1245,7 @@ func_if (char *o, char **argv, const char *funcname UNUSED)
|
||||
{
|
||||
char *expansion = expand_argument (begp, endp+1);
|
||||
|
||||
result = strlen (expansion);
|
||||
result = expansion[0] != '\0';
|
||||
free (expansion);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user