mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +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…
x
Reference in New Issue
Block a user