From: Paul Smith Date: Sat, 28 Oct 2017 19:28:32 +0000 (-0400) Subject: * function.c (func_if): Check the first character of condition. X-Git-Tag: 4.2.90~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9c25de370ccb18716cf21e38009f42d54979ddc;p=thirdparty%2Fmake.git * function.c (func_if): Check the first character of condition. Reported by Rob W --- diff --git a/function.c b/function.c index c70c155e..edfacdf1 100644 --- a/function.c +++ b/function.c @@ -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); }