Fix uninitized scalar access
This commit is contained in:
parent
d1a1932a07
commit
e5981c3b8e
1 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ void CSerialModem::SendNumber(Bitu val) {
|
|||
|
||||
void CSerialModem::SendRes(ResTypes response) {
|
||||
char const * string = nullptr;
|
||||
Bitu code;
|
||||
Bitu code = -1;
|
||||
switch (response)
|
||||
{
|
||||
case ResNONE: return;
|
||||
|
@ -161,7 +161,7 @@ void CSerialModem::SendRes(ResTypes response) {
|
|||
if(doresponse == 2 && (response == ResRING ||
|
||||
response == ResCONNECT || response == ResNOCARRIER))
|
||||
return;
|
||||
if(numericresponse)
|
||||
if(numericresponse && code != -1)
|
||||
SendNumber(code);
|
||||
else if (string != nullptr)
|
||||
SendLine(string);
|
||||
|
|
Loading…
Add table
Reference in a new issue