better error management in pymodule-alias

This commit is contained in:
roberto@precise64
2012-03-29 12:59:50 +02:00
parent 6274e82cea
commit c2d7b65145

View File

@@ -472,7 +472,7 @@ void init_uwsgi_vars() {
char *value = strchr(uppma->value, '=');
if (!value) {
uwsgi_log("invalid pymodule-alias syntax\n");
continue;
goto next;
}
value[0] = 0;
if (!strchr(value + 1, '/')) {
@@ -497,6 +497,7 @@ void init_uwsgi_vars() {
// reset original value
value[0] = '=';
next:
uppma = uppma->next;
}