Version 0.1.7 from FTP
[asterisk/asterisk.git] / config.c
index f56eb06..1e83bef 100755 (executable)
--- 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;