mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@131361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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
Block a user