another fix for pyargv

This commit is contained in:
roberto@debian64
2012-02-02 11:40:52 +01:00
parent a5aa31f13e
commit 97a8c5e4b6
+4 -2
View File
@@ -72,7 +72,8 @@ void init_pyargv() {
#endif
up.argc = 1;
char *tmp_ptr = uwsgi_str(up.argv);
if (up.argv) {
char *tmp_ptr = uwsgi_str(up.argv);
#ifdef __sun__
// FIX THIS !!!
ap = strtok(tmp_ptr, " ");
@@ -85,7 +86,8 @@ void init_pyargv() {
}
}
free(tmp_ptr);
free(tmp_ptr);
}
#ifdef PYTHREE
up.py_argv = uwsgi_calloc(sizeof(wchar_t *) * up.argc+1);