From: Jérémie Galarneau Date: Fri, 23 Oct 2015 01:37:54 +0000 (-0400) Subject: Fix: Unchecked NULL string in logging statement X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=40111ba158b663173bfc1c3e8cd32beb99c508f6 Fix: Unchecked NULL string in logging statement Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c index 5380cd8e4..5baa0fa0c 100644 --- a/src/bin/lttng-sessiond/agent.c +++ b/src/bin/lttng-sessiond/agent.c @@ -868,7 +868,8 @@ struct agent_event *agent_create_event(const char *name, DBG3("Agent create new event with name %s, loglevel type %d, \ loglevel value %d and filter %s", - name, loglevel_type, loglevel_value, filter_expression); + name, loglevel_type, loglevel_value, + filter_expression ? filter_expression : "NULL"); if (!name) { ERR("Failed to create agent event; no name provided.");