Truncate exclusion names to have a terminal '\0'
[lttng-tools.git] / src / common / mi-lttng.c
index 10e82115ea6478ede3bed74be1d5436f2395c8dd..fc22e4e0cabeb34f9f75b78607d79d0b5337f7f2 100644 (file)
@@ -17,7 +17,7 @@
  */
 
 #define _LGPL_SOURCE
-#include <common/config/config.h>
+#include <common/config/session-config.h>
 #include <lttng/snapshot-internal.h>
 #include "mi-lttng.h"
 
@@ -397,6 +397,7 @@ const char *mi_lttng_domaintype_string(enum lttng_domain_type value)
        default:
                /* Should not have an unknown domain */
                assert(0);
+               return NULL;
        }
 }
 
@@ -413,6 +414,7 @@ const char *mi_lttng_buffertype_string(enum lttng_buffer_type value)
        default:
                /* Should not have an unknow buffer type */
                assert(0);
+               return NULL;
        }
 }
 
This page took 0.023485 seconds and 4 git commands to generate.