Saving of Default Settings under Unix was broken, because mungestr()
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 11 Apr 2003 17:42:52 +0000 (17:42 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 11 Apr 2003 17:42:52 +0000 (17:42 +0000)
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

index b04d557..e12af03 100644 (file)
@@ -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);