diff options
Diffstat (limited to 'coreutils/expr.c')
-rw-r--r-- | coreutils/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/expr.c b/coreutils/expr.c index 1914734..51e553d 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c @@ -136,7 +136,7 @@ static int null(VALUE * v) if (v->type == integer) return v->u.i == 0; else /* string: */ - return v->u.s[0] == '\0' || strcmp(v->u.s, "0") == 0; + return v->u.s[0] == '\0' || LONE_CHAR(v->u.s, '0'); } /* Coerce V to a string value (can't fail). */ |