summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/cgensupport.c2
-rw-r--r--Python/cgensupport.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/cgensupport.c b/Modules/cgensupport.c
index b24c80a..a3023eb 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 b24c80a..a3023eb 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();
}