summaryrefslogtreecommitdiffstats
path: root/Python/structmember.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1990-12-20 23:12:40 (GMT)
committerGuido van Rossum <guido@python.org>1990-12-20 23:12:40 (GMT)
commit73531a3bae554998dd7d6d5d782d44fbf0da2ee8 (patch)
tree086f8611c592a963c627e50b5b1d7168920a8ff2 /Python/structmember.c
parent6c4f4a92ac02d2d1321ab545294078896529db2c (diff)
downloadcpython-73531a3bae554998dd7d6d5d782d44fbf0da2ee8.zip
cpython-73531a3bae554998dd7d6d5d782d44fbf0da2ee8.tar.gz
cpython-73531a3bae554998dd7d6d5d782d44fbf0da2ee8.tar.bz2
Return -1 for errors.
Diffstat (limited to 'Python/structmember.c')
-rw-r--r--Python/structmember.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/structmember.c b/Python/structmember.c
index 42c563e..b5f9bc3 100644
--- a/Python/structmember.c
+++ b/Python/structmember.c
@@ -130,5 +130,5 @@ setmember(addr, mlist, name, v)
}
err_setstr(NameError, name);
- return NULL;
+ return -1;
}