1
0
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:
Paul Smith 2017-10-28 15:28:32 -04:00
parent 193f1e81ed
commit b9c25de370

View File

@ -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);
}