1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

Add a missing null pointer check in wc_unescape, to bring it in line

with the usage comment saying you're allowed to pass NULL to find out
only the return value. No caller actually does pass NULL at the
moment.

[originally from svn r9920]
This commit is contained in:
Simon Tatham 2013-07-14 10:46:17 +00:00
parent ea301bdd9b
commit 74cf14e4eb

View File

@ -326,7 +326,8 @@ int wc_unescape(char *output, const char *wildcard)
wildcard++;
}
}
*output = '\0';
if (output)
*output = '\0';
return 1; /* it's clean */
}