mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +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:
parent
ea301bdd9b
commit
74cf14e4eb
@ -326,7 +326,8 @@ int wc_unescape(char *output, const char *wildcard)
|
|||||||
wildcard++;
|
wildcard++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*output = '\0';
|
if (output)
|
||||||
|
*output = '\0';
|
||||||
return 1; /* it's clean */
|
return 1; /* it's clean */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user