From 7cdf5eb5b98ea8eb25c5fce748f3e06001f2a02e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 6 Apr 1992 12:34:45 +0000 Subject: [PATCH] Don't use NULL as 0 int! --- Modules/cgensupport.c | 2 +- Python/cgensupport.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/cgensupport.c b/Modules/cgensupport.c index b24c80a428e..a3023ebb9c0 100644 --- a/Modules/cgensupport.c +++ b/Modules/cgensupport.c @@ -171,7 +171,7 @@ getistringarg(args, nargs, i, p_arg) { object *v; if (!getiobjectarg(args, nargs, i, &v)) - return NULL; + return 0; if (!is_stringobject(v)) { return err_badarg(); } diff --git a/Python/cgensupport.c b/Python/cgensupport.c index b24c80a428e..a3023ebb9c0 100644 --- a/Python/cgensupport.c +++ b/Python/cgensupport.c @@ -171,7 +171,7 @@ getistringarg(args, nargs, i, p_arg) { object *v; if (!getiobjectarg(args, nargs, i, &v)) - return NULL; + return 0; if (!is_stringobject(v)) { return err_badarg(); }