return NULL if PyUnicode_FromString fails.

This commit is contained in:
Joris Vink 2019-07-16 21:31:19 +02:00
parent 5055f3c872
commit f2e17c1384
1 changed files with 1 additions and 1 deletions

View File

@ -3537,7 +3537,7 @@ pyhttp_cookie(struct pyhttp_request *pyreq, PyObject *args)
}
if ((value = PyUnicode_FromString(string)) == NULL)
return (PyErr_NoMemory());
return (NULL);
return (value);
}