X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/6681531ad79b73f4e811037481a0055ace41e46d..51c7471d48efd62b2d4f5647782ba1e849d4c35a:/src/src/expand.c diff --git a/src/src/expand.c b/src/src/expand.c index bd097db43..64a3a86e6 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -2849,7 +2849,9 @@ switch(cond_type) be no maintenance burden from replicating it. */ if (len == 0) boolvalue = FALSE; - else if (Ustrspn(t, "0123456789") == len) + else if (*t == '-' + ? Ustrspn(t+1, "0123456789") == len-1 + : Ustrspn(t, "0123456789") == len) { boolvalue = (Uatoi(t) == 0) ? FALSE : TRUE; /* expand_check_condition only does a literal string "0" check */