mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: junky Review: https://reviewboard.asterisk.org/r/1743/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -448,7 +448,6 @@ static int unload_module(void)
|
||||
|
||||
static int config_module(int reload)
|
||||
{
|
||||
struct ast_variable *var;
|
||||
char *pgerror;
|
||||
struct columns *cur;
|
||||
PGresult *result;
|
||||
@@ -465,7 +464,7 @@ static int config_module(int reload)
|
||||
|
||||
ast_mutex_lock(&pgsql_lock);
|
||||
|
||||
if (!(var = ast_variable_browse(cfg, "global"))) {
|
||||
if (!ast_variable_browse(cfg, "global")) {
|
||||
ast_config_destroy(cfg);
|
||||
ast_mutex_unlock(&pgsql_lock);
|
||||
ast_log(LOG_NOTICE, "cdr_pgsql configuration contains no global section, skipping module %s.\n",
|
||||
|
||||
Reference in New Issue
Block a user