Fix a couple of typos

This commit is contained in:
Kovid Goyal
2018-01-08 13:54:08 +05:30
parent 815087460c
commit db92af68e9
2 changed files with 3 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ spawn(PyObject *self UNUSED, PyObject *args) {
#undef exit_on_err
free(argv);
free(env);
if (pid == -1) return NULL;
if (PyErr_Occurred()) return NULL;
return PyLong_FromLong(pid);
}