diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-16 19:57:02 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-16 19:57:02 +0000 |
commit | 8c44f0b48c6f55b078191a6b1ade23e3012fa6b4 (patch) | |
tree | dd1bf4d4c8b6eb5b79c629301946206224288d7d | |
parent | 1a7523608c6e8dc61589e18bde67870d6555aab5 (diff) |
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
-rw-r--r-- | res/res_config_sqlite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_config_sqlite.c b/res/res_config_sqlite.c index a2c72d182..c1ee895bf 100644 --- a/res/res_config_sqlite.c +++ b/res/res_config_sqlite.c @@ -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; } |