summaryrefslogtreecommitdiff
path: root/src/delete.c
diff options
context:
space:
mode:
authorJayaraj Rajappan <jayarajpr@src.gnome.org>2002-06-14 07:20:06 +0000
committerJayaraj Rajappan <jayarajpr@src.gnome.org>2002-06-14 07:20:06 +0000
commitb44845ad661057155909302d2559e5ca9b818df5 (patch)
tree3f12c00d4b873cb81e53630adae6efffa393cd1a /src/delete.c
parentf1097bfbe1e5c20b026c12fe3fb27ca34b7466c3 (diff)
downloadmetacity-b44845ad661057155909302d2559e5ca9b818df5.tar.gz
metacity-b44845ad661057155909302d2559e5ca9b818df5.tar.bz2
Check for NULL string before calling strlen(). Fixes the core dump
reported in #84873.
Diffstat (limited to 'src/delete.c')
-rw-r--r--src/delete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delete.c b/src/delete.c
index 7acb697..447e821 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -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)
{