]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct typo: return -1 for error, not 0
authorGuido van Rossum <guido@python.org>
Wed, 11 Sep 1996 23:31:23 +0000 (23:31 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 11 Sep 1996 23:31:23 +0000 (23:31 +0000)
Modules/sunaudiodev.c

index fad8debf2325afae6d42784a904209ca6ae7f5b3..ac4b156f98f598218c2c5dcdc282626c332b19fe 100644 (file)
@@ -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);
 }