From: Akim Demaille Date: Tue, 5 Jun 2012 16:02:49 +0000 (+0200) Subject: maint: an envvar equal to "00" is 0. X-Git-Tag: v2.7.90~442 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/4896ede89ca060e3673e90fcd4a36f76517905c7 maint: an envvar equal to "00" is 0. * src/output.c (prepare): here. Reported by Paul Eggert. --- diff --git a/src/output.c b/src/output.c index 96c69da4..37b15cfb 100644 --- a/src/output.c +++ b/src/output.c @@ -668,10 +668,10 @@ output_skeleton (void) static void prepare (void) { - /* BISON_USE_PUSH_FOR_PULL is for the test suite and should not be documented - for the user. */ + /* BISON_USE_PUSH_FOR_PULL is for the test suite and should not be + documented for the user. */ char const *cp = getenv ("BISON_USE_PUSH_FOR_PULL"); - bool use_push_for_pull_flag = cp && *cp && STRNEQ (cp, "0"); + bool use_push_for_pull_flag = cp && *cp && strtol (cp, 0, 10); /* Flags. */ MUSCLE_INSERT_BOOL ("defines_flag", defines_flag);