[Asterisk-cvs] asterisk/res res_config_odbc.c,1.17,1.18
markster at lists.digium.com
markster at lists.digium.com
Sun Jan 16 16:55:21 CST 2005
Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv23050/res
Modified Files:
res_config_odbc.c
Log Message:
Fix static db problem
Index: res_config_odbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_config_odbc.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- res_config_odbc.c 18 Dec 2004 22:04:07 -0000 1.17
+++ res_config_odbc.c 16 Jan 2005 22:58:44 -0000 1.18
@@ -407,7 +407,7 @@
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 @@
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 @@
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);
More information about the svn-commits
mailing list