Skip to content
Snippets Groups Projects
Commit 5120334a authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Backport 1.6.0 fix to trunk (failsafe if db is not loaded)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@179361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 775b3030
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,11 @@ static int sqlite3_log(struct ast_cdr *cdr)
struct ast_channel dummy = { 0, };
int count = 0;
if (db == NULL) {
/* Should not have loaded, but be failsafe. */
return 0;
}
{ /* Make it obvious that only sql should be used outside of this block */
char *escaped;
char subst_buf[2048];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment