mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-08 06:31:58 +00:00
uwsgi_app.chdir is an array
So check if it's first member is not 0 instead. Fix Coverity CID #971000, #970998.
This commit is contained in:
@@ -2165,7 +2165,7 @@ PyObject *py_uwsgi_workers(PyObject * self, PyObject * args) {
|
||||
PyDict_SetItemString(apps_dict, "exceptions", zero);
|
||||
Py_DECREF(zero);
|
||||
|
||||
if (ua->chdir) {
|
||||
if (*ua->chdir) {
|
||||
zero = PyString_FromString(ua->chdir);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user