mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 18:20:27 +00:00
Prevent null pointer dereference defect
This commit is contained in:
parent
ca4086622a
commit
017bf34d71
@ -1041,7 +1041,8 @@ bool netplay_command(netplay_t* netplay, enum netplay_cmd cmd,
|
||||
return true;
|
||||
|
||||
error:
|
||||
snprintf(m, sizeof(m), msg, command_str);
|
||||
if (msg)
|
||||
snprintf(m, sizeof(m), msg, command_str);
|
||||
RARCH_WARN("%s\n", m);
|
||||
runloop_msg_queue_push(m, 1, 180, false);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user