Permalink
Browse files

Remove NULL returns in non-exception error conditions

  • Loading branch information...
R. Tyler Ballance
R. Tyler Ballance committed Jul 8, 2009
1 parent 270593d commit 2f233b8d4e98f1f147895225963fa09ae04a6f14
Showing with 2 additions and 2 deletions.
  1. +2 −2 _pyecc.c
View
@@ -56,7 +56,7 @@ static PyObject *py_new_state(PyObject *self, PyObject *args, PyObject *kwargs)
if (!PyCObject_Check(rc)) {
if (state)
ecc_free_state(state);
- return NULL;
+ Py_RETURN_NONE;
}
return rc;
}
@@ -176,7 +176,7 @@ static PyObject *py_new_keypair(PyObject *self, PyObject *args, PyObject *kwargs
if (!PyCObject_Check(rc)) {
if (kp)
_release_keypair(kp);
- return NULL;
+ Py_RETURN_NONE;
}
return rc;
}

0 comments on commit 2f233b8

Please sign in to comment.