summaryrefslogtreecommitdiff
path: root/include/asterisk/strings.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/strings.h')
-rw-r--r--include/asterisk/strings.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h
index 0001c964c..18b363b75 100644
--- a/include/asterisk/strings.h
+++ b/include/asterisk/strings.h
@@ -23,7 +23,7 @@
#ifndef _ASTERISK_STRINGS_H
#define _ASTERISK_STRINGS_H
-#define DEBUG_OPAQUE
+/* #define DEBUG_OPAQUE */
#include <ctype.h>
@@ -32,7 +32,7 @@
/* You may see casts in this header that may seem useless but they ensure this file is C++ clean */
-#define AS_OR(a,b) ast_str_strlen(a) ? ast_str_buffer(a) : (b)
+#define AS_OR(a,b) (a && ast_str_strlen(a)) ? ast_str_buffer(a) : (b)
#ifdef AST_DEVMODE
#define ast_strlen_zero(foo) _ast_strlen_zero(foo, __FILE__, __PRETTY_FUNCTION__, __LINE__)