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>
Mon, 2 Nov 2015 23:26:17 +0000 (18:26 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/agent.c

index e9cd5fa050a2ac5b32d46e0e5478ec22d99f9a86..229647b10250b50805afde525ca35e4ae3de2fac 100644 (file)
@@ -807,7 +807,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.028021 seconds and 4 git commands to generate.