Don't try to dereference the dbfile pointer if
we know that it's NULL. (closes issue #13092) Reported by: gknispel_proformatique Patches: trunk_sqlite_check_vars_null.patch uploaded by gknispel (license 261) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131361 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
1a7523608c
commit
8c44f0b48c
|
@ -600,7 +600,7 @@ static int set_var(char **var, const char *name, const char *value)
|
|||
static int check_vars(void)
|
||||
{
|
||||
if (!dbfile) {
|
||||
ast_log(LOG_ERROR, "Undefined parameter %s\n", dbfile);
|
||||
ast_log(LOG_ERROR, "Required parameter undefined: dbfile\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue