projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b35c06d
)
Don't try to dereference the dbfile pointer if
author
Mark Michelson
<mmichelson@digium.com>
Wed, 16 Jul 2008 19:57:02 +0000
(19:57 +0000)
committer
Mark Michelson
<mmichelson@digium.com>
Wed, 16 Jul 2008 19:57:02 +0000
(19:57 +0000)
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
res/res_config_sqlite.c
patch
|
blob
|
history
diff --git
a/res/res_config_sqlite.c
b/res/res_config_sqlite.c
index
a2c72d1
..
c1ee895
100644
(file)
--- 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;
}