aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rwxr-xr-xconfig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.c b/config.c
index f56eb069c..1e83beffb 100755
--- a/config.c
+++ b/config.c
@@ -51,6 +51,9 @@ void ast_destroy(struct ast_config *ast)
struct ast_category *cat, *catn;
struct ast_variable *v, *vn;
+ if (!ast)
+ return;
+
cat = ast->root;
while(cat) {
v = cat->root;