mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 09:46:08 -05:00
Check for NULL string before calling strlen(). Fixes the core dump
reported in #84873.
This commit is contained in:
parent
f1097bfbe1
commit
b44845ad66
@ -266,7 +266,7 @@ io_from_ping_dialog (GIOChannel *channel,
|
||||
|
||||
meta_topic (META_DEBUG_PING,
|
||||
"Read %d bytes strlen %d \"%s\" from child\n",
|
||||
len, strlen (str), str);
|
||||
len, str ? strlen (str) : 0, str ? str : "NULL");
|
||||
|
||||
if (len > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user