aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cdr/cdr_sqlite3_custom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cdr/cdr_sqlite3_custom.c b/cdr/cdr_sqlite3_custom.c
index 1c663362b..c6eb8b5ba 100644
--- a/cdr/cdr_sqlite3_custom.c
+++ b/cdr/cdr_sqlite3_custom.c
@@ -209,7 +209,8 @@ static int load_module(void)
ast_log(LOG_ERROR, "%s: Unable to register custom SQLite3 CDR handling\n", name);
return AST_MODULE_LOAD_DECLINE;
}
- }
+ } else
+ return AST_MODULE_LOAD_DECLINE;
/* is the database there? */
snprintf(fn, sizeof(fn), "%s/master.db", ast_config_AST_LOG_DIR);