diff options
author | Gerald Carter <jerry@samba.org> | 2006-06-20 16:59:48 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2006-06-20 16:59:48 +0000 |
commit | 71402ccf50c38ff092e7331c6817bbf975fde412 (patch) | |
tree | 49ed8a84c63734b906f1b792225f12fc1dc1d659 /source/lib/debug.c | |
parent | aa39f8aeab4ff08fd083cf913576f24104b08fde (diff) | |
download | samba-71402ccf50c38ff092e7331c6817bbf975fde412.tar.gz samba-71402ccf50c38ff092e7331c6817bbf975fde412.tar.xz samba-71402ccf50c38ff092e7331c6817bbf975fde412.zip |
r16418: Pull in more Klocwork fixes (up to r16415)
Diffstat (limited to 'source/lib/debug.c')
-rw-r--r-- | source/lib/debug.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/lib/debug.c b/source/lib/debug.c index b8c42686cdb..2b6c42b8eb0 100644 --- a/source/lib/debug.c +++ b/source/lib/debug.c @@ -513,6 +513,11 @@ static void debuglevel_message(int msg_type, struct process_id src, { char *message = debug_list_class_names_and_levels(); + if (!message) { + DEBUG(0,("debuglevel_message - debug_list_class_names_and_levels returned NULL\n")); + return; + } + DEBUG(1,("INFO: Received REQ_DEBUGLEVEL message from PID %u\n", (unsigned int)procid_to_pid(&src))); message_send_pid(src, MSG_DEBUGLEVEL, message, strlen(message) + 1, True); |