summaryrefslogtreecommitdiff
path: root/main/xmldoc.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2013-07-09 21:06:21 +0000
committerRichard Mudgett <rmudgett@digium.com>2013-07-09 21:06:21 +0000
commit5dbaee232c2c88f2017886a5e203c40dce948758 (patch)
tree578ad1cdc840844d6de862de0e4aff424dde660b /main/xmldoc.c
parent0e25d8036ef9f6d21c57791fd6b58179816e6e6c (diff)
Fix printf NULL string (null) substituion for NULL config framework default.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393910 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/xmldoc.c')
-rw-r--r--main/xmldoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/xmldoc.c b/main/xmldoc.c
index 2dd343263..542b77ef5 100644
--- a/main/xmldoc.c
+++ b/main/xmldoc.c
@@ -1181,8 +1181,8 @@ static char *xmldoc_get_syntax_config_option(struct ast_xml_node *fixnode, const
ast_str_set(&syntax, 0, "%s = [%s] (Default: %s) (Regex: %s)\n",
name,
type,
- default_value,
- regex ? regex : "False");
+ default_value ?: "n/a",
+ regex ?: "False");
ast_xml_free_attr(type);
ast_xml_free_attr(default_value);