diff options
author | Mark Spencer <markster@digium.com> | 2005-01-16 22:58:44 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-01-16 22:58:44 +0000 |
commit | 261b4a85e13fec22d3d4e7759523608232432d3c (patch) | |
tree | f0a5c966bac9c5434d7f267613a6c4a42e3a737f /res | |
parent | cb55bf96efa8db45a1df0598e758051887afeca0 (diff) |
Fix static db problem
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rwxr-xr-x | res/res_config_odbc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index 485a792e7..2a27c06a2 100755 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -407,7 +407,7 @@ static int update_odbc(const char *database, const char *table, const char *keyf return -1; } -static struct ast_config *config_odbc (const char *database, const char *table, const char *file, struct ast_config *new_config_s, struct ast_category **new_cat_p, struct ast_variable **new_v_p, int recur) +static struct ast_config *config_odbc(const char *database, const char *table, const char *file, struct ast_config *new_config_s, struct ast_category **new_cat_p, int recur) { struct ast_config *new; struct ast_variable *cur_v, *new_v; @@ -477,7 +477,7 @@ static struct ast_config *config_odbc (const char *database, const char *table, cat_started = 0; cur_cat = *new_cat_p; - cur_v = *new_v_p; + cur_v = NULL; if (cur_cat) cat_started = 1; @@ -487,7 +487,7 @@ static struct ast_config *config_odbc (const char *database, const char *table, while (res != SQL_NO_DATA) { if (!strcmp (var_name, "#include") && recur < MAX_INCLUDE_LEVEL) { - config_odbc(database, table, var_val, new, &cur_cat, &cur_v, recur + 1); + config_odbc(database, table, var_val, new, &cur_cat, recur + 1); } else { if (strcmp (last, category) || last_cat_metric != cat_metric) { strncpy(last, category, sizeof(last) - 1); |