Skip to content
Snippets Groups Projects
Commit 94fe4232 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix CID 469138

getkeys() is actually never (currently) called with a NULL arg, so this
could not actually occur, but better to prepare for that eventuality.

This looks like a case of not following the YAGNI principle.
parent 60252991
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -332,7 +332,7 @@ bool sbbs_t::noyes(const char *str, int mode) ...@@ -332,7 +332,7 @@ bool sbbs_t::noyes(const char *str, int mode)
/****************************************************************************/ /****************************************************************************/
int sbbs_t::getkeys(const char *keys, uint max, int mode) int sbbs_t::getkeys(const char *keys, uint max, int mode)
{ {
char str[81]; char str[81]{};
uchar ch,n=0,c=0; uchar ch,n=0,c=0;
uint i=0; uint i=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment