aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index 3d81ebda7..f56eb069c 100755
--- a/config.c
+++ b/config.c
@@ -70,6 +70,8 @@ void ast_destroy(struct ast_config *ast)
int ast_true(char *s)
{
+ if (!s)
+ return 0;
/* Determine if this is a true value */
if (!strcasecmp(s, "yes") ||
!strcasecmp(s, "true") ||