Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / common / filter / filter-visitor-ir-normalize-glob-patterns.c
index d6a9132d3692f68a445914d8792b1e805fbd4d6e..679561632606881b23c05d03d9c296f0d1176eb0 100644 (file)
@@ -13,7 +13,6 @@
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
-#include <assert.h>
 #include <inttypes.h>
 
 #include <common/compat/errno.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.023883 seconds and 4 git commands to generate.