diff --git a/config.c b/config.c index 3d81ebda76294b890b13809f43231c1540ecc71d..f56eb069c05490457599eedfed0c74829e97d199 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") ||