From 787759c0a3106ecf52b017861067ac6a669902f3 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Wed, 22 Aug 2001 12:38:29 +0000 Subject: don't stay automatic for ask_from_entries when entries are not given --- mdk-stage1/automatic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdk-stage1/automatic.c') diff --git a/mdk-stage1/automatic.c b/mdk-stage1/automatic.c index 486a829de..edb478ca6 100644 --- a/mdk-stage1/automatic.c +++ b/mdk-stage1/automatic.c @@ -135,7 +135,8 @@ enum return_type ask_from_entries_auto(char *msg, char ** questions, char *** an char * tmp_answers[50]; int i = 0; while (questions && *questions) { - tmp_answers[i] = get_auto_value(*questions_auto); + if (streq(tmp_answers[i] = get_auto_value(*questions_auto), "")) + return ask_from_entries(msg, questions, answers, entry_size, callback_func); log_message("AUTOMATIC: question %s answers %s because of param %s", *questions, tmp_answers[i], *questions_auto); i++; questions++; -- cgit v1.2.1