summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-09-11 23:31:23 (GMT)
committerGuido van Rossum <guido@python.org>1996-09-11 23:31:23 (GMT)
commitf156f503cddaa0fad96e91405ebf0f5e88b8efbe (patch)
treec09a5b015c7f220f801a08e5b55fff7ab98886cc /Modules
parent3863abb921eb1ae7b457df653681c058b61cfe1d (diff)
downloadcpython-f156f503cddaa0fad96e91405ebf0f5e88b8efbe.zip
cpython-f156f503cddaa0fad96e91405ebf0f5e88b8efbe.tar.gz
cpython-f156f503cddaa0fad96e91405ebf0f5e88b8efbe.tar.bz2
Correct typo: return -1 for error, not 0
Diffstat (limited to 'Modules')
-rw-r--r--Modules/sunaudiodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/sunaudiodev.c b/Modules/sunaudiodev.c
index fad8deb..ac4b156 100644
--- a/Modules/sunaudiodev.c
+++ b/Modules/sunaudiodev.c
@@ -421,7 +421,7 @@ sads_setattr(xp, name, v)
if (v == NULL) {
err_setstr(TypeError,
"can't delete sun audio status attributes");
- return 0;
+ return -1;
}
return setmember((char *)&xp->ai, sads_ml, name, v);
}