mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +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:
parent
d710c84dec
commit
1be575d9c4
@ -29,7 +29,7 @@ static char *mungestr(const char *in)
|
|||||||
{
|
{
|
||||||
char *out, *ret;
|
char *out, *ret;
|
||||||
|
|
||||||
if (!in)
|
if (!in || !*in)
|
||||||
in = "Default Settings";
|
in = "Default Settings";
|
||||||
|
|
||||||
ret = out = snewn(3*strlen(in)+1, char);
|
ret = out = snewn(3*strlen(in)+1, char);
|
||||||
|
Loading…
Reference in New Issue
Block a user