Skip to content

Commit

Permalink
process options in reverse order for better templating
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto@debian32 committed Jun 12, 2011
1 parent 3a9d13b commit ef7baba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uwsgi.c
Expand Up @@ -232,7 +232,8 @@ void uwsgi_configure(void) {
int is_retry;
int found;

for (i = 0; i < uwsgi.exported_opts_cnt; i++) {
// option must be processed in revers (to have a consistent template system)
for (i = uwsgi.exported_opts_cnt-1; i >= 0; i--) {

if (uwsgi.exported_opts[i]->configured)
continue;
Expand Down

0 comments on commit ef7baba

Please sign in to comment.