diff options
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/config.c b/src/config.c index 5495d41..a29be0d 100644 --- a/src/config.c +++ b/src/config.c @@ -175,20 +175,6 @@ cb_confirm(enum grecs_callback_command cmd, return 1; } - switch (value->v.arg.v[1]->type) { - case GRECS_TYPE_STRING: - set_command_confirmation(value->v.arg.v[1]->v.string, cfmode, - &value->v.arg.v[1]->locus); - return 0; - - case GRECS_TYPE_LIST: - break; - - default: - grecs_error(locus, 0, "second argument not a list"); - return 1; - } - s = value->v.arg.v[0]->v.string; if (strcmp(s, "positive") == 0) cfmode = eclat_confirm_positive; @@ -204,6 +190,20 @@ cb_confirm(enum grecs_callback_command cmd, return 1; } + switch (value->v.arg.v[1]->type) { + case GRECS_TYPE_STRING: + set_command_confirmation(value->v.arg.v[1]->v.string, cfmode, + &value->v.arg.v[1]->locus); + return 0; + + case GRECS_TYPE_LIST: + break; + + default: + grecs_error(locus, 0, "second argument not a list"); + return 1; + } + for (ep = value->v.arg.v[1]->v.list->head; ep; ep = ep->next) { argval = ep->data; if (argval->type != GRECS_TYPE_STRING) { |