Fix: Unchecked NULL string in logging statement
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 23 Oct 2015 01:37:54 +0000 (21:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 23 Oct 2015 01:37:54 +0000 (21:37 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/agent.c

index 5380cd8e424acadd52ce7b604bd67624053fd948..5baa0fa0c6fe99d303f47327f52cac3ecf8284ea 100644 (file)
@@ -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.");
This page took 0.037202 seconds and 4 git commands to generate.