Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / src / common / filter / filter-visitor-ir-validate-string.c
index b62fbc438cf38d2e56437d04b1bc5136cfdcbaf3..5b0613b190df11a9dd1c256b10fc2a527a2e3eb4 100644 (file)
@@ -13,7 +13,6 @@
 #include <unistd.h>
 #include <string.h>
 #include <stdlib.h>
-#include <assert.h>
 #include <inttypes.h>
 
 #include <common/macros.h>
@@ -67,7 +66,7 @@ int validate_string(struct ir_op *node)
                if (node->data_type == IR_DATA_STRING) {
                        const char *str;
 
-                       assert(node->u.load.u.string.value);
+                       LTTNG_ASSERT(node->u.load.u.string.value);
                        str = node->u.load.u.string.value;
 
                        for (;;) {
This page took 0.023332 seconds and 4 git commands to generate.