projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de0c664
)
respect the default/previously set value; don't overwrite it in case of empty strings.
author
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 5 Jan 2012 20:40:15 +0000
(21:40 +0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 5 Jan 2012 20:40:15 +0000
(21:40 +0100)
citadel/utils/setup.c
patch
|
blob
|
history
diff --git
a/citadel/utils/setup.c
b/citadel/utils/setup.c
index 86e9c1f1694974fa095939f888e68f8df12de562..311f1b28f52fff4b592c96414f0f91a5b018fc61 100644
(file)
--- 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;
}
}