fix pointer thingy

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8419 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-05-15 20:53:22 +00:00
parent 88b177c1b4
commit 230cec65c8
2 changed files with 3 additions and 3 deletions

View File

@ -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 */

View File

@ -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;
}
}