plugins/python: don't copy router_name in py_uwsgi_route

No need to create a news string since uwsgi_route_api_func use it
for just a strcmp.

Reported by Coverity as CID #989251.
This commit is contained in:
Riccardo Magliocchetti
2013-03-09 15:50:02 +01:00
parent 1775526b89
commit 9d735fdbea
+1 -1
View File
@@ -717,7 +717,7 @@ static PyObject *py_uwsgi_route(PyObject * self, PyObject * args) {
return NULL;
}
int ret = uwsgi_route_api_func(wsgi_req, uwsgi_str(router_name), uwsgi_str(router_args));
int ret = uwsgi_route_api_func(wsgi_req, router_name, uwsgi_str(router_args));
return PyInt_FromLong(ret);
}
#endif