Don't use NULL as 0 int!

This commit is contained in:
Guido van Rossum 1992-04-06 12:34:45 +00:00
parent 74b31c9826
commit 7cdf5eb5b9
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}

View File

@ -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();
}