fix pointer thingy
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8419 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
88b177c1b4
commit
230cec65c8
|
@ -65,7 +65,7 @@ struct switch_config {
|
||||||
/*! FILE stream buffer to the opened file */
|
/*! FILE stream buffer to the opened file */
|
||||||
FILE *file;
|
FILE *file;
|
||||||
/*! path to the file */
|
/*! path to the file */
|
||||||
char *path;
|
char path[512];
|
||||||
/*! current category */
|
/*! current category */
|
||||||
char category[256];
|
char category[256];
|
||||||
/*! current section */
|
/*! current section */
|
||||||
|
|
|
@ -66,7 +66,7 @@ SWITCH_DECLARE(int) switch_config_open_file(switch_config_t * cfg, char *file_pa
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg->file = f;
|
cfg->file = f;
|
||||||
cfg->path = path;
|
switch_set_string(cfg->path, path);
|
||||||
|
|
||||||
while (switch_config_next_pair(cfg, &var, &val)) {
|
while (switch_config_next_pair(cfg, &var, &val)) {
|
||||||
if (file_path && (cfg->sectno != last) && !strcmp(cfg->section, file_path)) {
|
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;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
cfg->file = f;
|
cfg->file = f;
|
||||||
cfg->path = path;
|
switch_set_string(cfg->path, path);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue