1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 01:48:00 +00:00

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]
This commit is contained in:
Simon Tatham 2003-04-11 17:42:52 +00:00
parent d710c84dec
commit 1be575d9c4

View 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);