Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / common / filter / filter-visitor-ir-normalize-glob-patterns.c
index 5e2778e09de84e5d05594b74dc11f487f7806aea..679561632606881b23c05d03d9c296f0d1176eb0 100644 (file)
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
-#include <assert.h>
-#include <errno.h>
 #include <inttypes.h>
 
+#include <common/compat/errno.h>
 #include <common/macros.h>
 #include <common/string-utils/string-utils.h>
 
@@ -42,7 +41,7 @@ int normalize_glob_patterns(struct ir_op *node)
                                node->u.load.u.string.type;
                        if (type == IR_LOAD_STRING_TYPE_GLOB_STAR_END ||
                                        type == IR_LOAD_STRING_TYPE_GLOB_STAR) {
-                               assert(node->u.load.u.string.value);
+                               LTTNG_ASSERT(node->u.load.u.string.value);
                                strutils_normalize_star_glob_pattern(
                                        node->u.load.u.string.value);
                        }
This page took 0.022916 seconds and 4 git commands to generate.