Check for NULL string before calling strlen(). Fixes the core dump

reported in #84873.
This commit is contained in:
Jayaraj Rajappan 2002-06-14 07:20:06 +00:00
parent f1097bfbe1
commit b44845ad66

View File

@ -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)
{