forked from mirrors/kore
return NULL if PyUnicode_FromString fails.
This commit is contained in:
parent
5055f3c872
commit
f2e17c1384
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue