summaryrefslogtreecommitdiff
path: root/include/asterisk/config.h
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2016-08-19 19:19:28 -0400
committerCorey Farrell <git@cfware.com>2016-08-19 20:16:36 -0400
commit55ccdf93c326ecbfe6a989d45f818fbf7bbe1762 (patch)
treea2240a1eccd9e643995ae0eeba591190d181e2cc /include/asterisk/config.h
parent8061d9f66f636ada714f719be9809ea58cd5c871 (diff)
Fix checks for allocation debugging.
MALLOC_DEBUG should not be used to check if debugging is actually enabled, __AST_DEBUG_MALLOC should be used instead. MALLOC_DEBUG only indicates that debugging is requested, __AST_DEBUG_MALLOC indicates it is active. Change-Id: I3ce9cdb6ec91b74ee1302941328462231be1ea53
Diffstat (limited to 'include/asterisk/config.h')
-rw-r--r--include/asterisk/config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
index 287635a8e..4944a3af2 100644
--- a/include/asterisk/config.h
+++ b/include/asterisk/config.h
@@ -907,7 +907,7 @@ void ast_category_destroy(struct ast_category *cat);
struct ast_variable *ast_category_detach_variables(struct ast_category *cat);
void ast_category_rename(struct ast_category *cat, const char *name);
-#ifdef MALLOC_DEBUG
+#ifdef __AST_DEBUG_MALLOC
struct ast_variable *_ast_variable_new(const char *name, const char *value, const char *filename, const char *file, const char *function, int lineno);
#define ast_variable_new(name, value, filename) _ast_variable_new(name, value, filename, __FILE__, __PRETTY_FUNCTION__, __LINE__)
#else