From 1be575d9c4d73d7b6992d3483ff47aa76b7e87dc Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 11 Apr 2003 17:42:52 +0000 Subject: [PATCH] Saving of Default Settings under Unix was broken, because mungestr() was translating NULL into "Default Settings" but not doing the same to "". Now fixed. [originally from svn r3096] --- unix/uxstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/uxstore.c b/unix/uxstore.c index b04d557c..e12af036 100644 --- a/unix/uxstore.c +++ b/unix/uxstore.c @@ -29,7 +29,7 @@ static char *mungestr(const char *in) { char *out, *ret; - if (!in) + if (!in || !*in) in = "Default Settings"; ret = out = snewn(3*strlen(in)+1, char);