提交 230cec65 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix pointer thingy

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8419 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 88b177c1
......@@ -65,7 +65,7 @@ struct switch_config {
/*! FILE stream buffer to the opened file */
FILE *file;
/*! path to the file */
char *path;
char path[512];
/*! current category */
char category[256];
/*! current section */
......
......@@ -66,7 +66,7 @@ SWITCH_DECLARE(int) switch_config_open_file(switch_config_t * cfg, char *file_pa
}
cfg->file = f;
cfg->path = path;
switch_set_string(cfg->path, path);
while (switch_config_next_pair(cfg, &var, &val)) {
if (file_path && (cfg->sectno != last) && !strcmp(cfg->section, file_path)) {
......@@ -83,7 +83,7 @@ SWITCH_DECLARE(int) switch_config_open_file(switch_config_t * cfg, char *file_pa
return 0;
} else {
cfg->file = f;
cfg->path = path;
switch_set_string(cfg->path, path);
return 1;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论