mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-04 20:51:29 +00:00
plugins/python: remove double assignment to same variable
Which coverity reports as undefined behaviour in CID #970978.
This commit is contained in:
@@ -30,7 +30,7 @@ void set_dyn_pyhome(char *home, uint16_t pyhome_len) {
|
||||
|
||||
PyObject *pysys_dict = get_uwsgi_pydict("sys");
|
||||
|
||||
PyObject *pypath = pypath = PyDict_GetItemString(pysys_dict, "path");
|
||||
PyObject *pypath = PyDict_GetItemString(pysys_dict, "path");
|
||||
if (!pypath) {
|
||||
PyErr_Print();
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user