From 797f6ff3e6da533570a0dc074771d485619e49c8 Mon Sep 17 00:00:00 2001 From: simon 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@3096 cda61777-01e9-0310-a592-d414129be87e --- 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); -- 2.11.0