From 5647aff9954aa17ed031b50b1ebd10ae30875623 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Sun, 27 Jan 2013 10:22:31 +0100 Subject: [PATCH] plugins/python: remove double assignment to same variable Which coverity reports as undefined behaviour in CID #970978. --- plugins/python/pyloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/pyloader.c b/plugins/python/pyloader.c index 9417c71b..04f78c46 100644 --- a/plugins/python/pyloader.c +++ b/plugins/python/pyloader.c @@ -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);