From: simon Date: Fri, 11 Apr 2003 17:42:52 +0000 (+0000) Subject: Saving of Default Settings under Unix was broken, because mungestr() X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/797f6ff3e6da533570a0dc074771d485619e49c8 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 --- 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);