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:
Riccardo Magliocchetti
2013-12-23 16:53:41 +01:00
parent 486796bdf9
commit fbf9a5b27c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 {