From 09d85563ff6be31ab572d10fc230cc4f04e7138f Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 5 Jan 2012 21:40:15 +0100 Subject: [PATCH] respect the default/previously set value; don't overwrite it in case of empty strings. --- citadel/utils/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/citadel/utils/setup.c b/citadel/utils/setup.c index 86e9c1f16..311f1b28f 100644 --- a/citadel/utils/setup.c +++ b/citadel/utils/setup.c @@ -919,7 +919,8 @@ void strprompt(const char *prompt_title, const char *prompt_text, char *Target, } break; case UI_SILENT: - strcpy(Target, DefValue); + if (*DefValue != '\0') + strcpy(Target, DefValue); break; } } -- 2.30.2