X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=catgconf.c;h=650a0e9a9ce543b81710eab78799e7bd84d9b414;hb=0a81dc0c72ea7cb7a5d04fbb89dbb69e83bbf8fb;hp=dc0f3124d4e5d62275a8e701e334e5c85cc7d573;hpb=3badd3809645529046513f8ee2835f7949cbcde9;p=radsecproxy.git diff --git a/catgconf.c b/catgconf.c index dc0f312..650a0e9 100644 --- a/catgconf.c +++ b/catgconf.c @@ -6,16 +6,18 @@ #include "gconfig.h" void listconfig(struct gconffile **cf, char *block, int compact) { - char *opt, *val; + char *opt = NULL, *val = NULL; int conftype; for (;;) { + free(opt); + free(val); getconfigline(cf, block, &opt, &val, &conftype); if (!opt) return; if (conftype == CONF_STR && !strcasecmp(opt, "include")) { - if (!pushgconffiles(cf, val)) + if (!pushgconfpaths(cf, val)) debugx(1, DBG_ERR, "failed to include config file %s", val); continue; } @@ -65,3 +67,7 @@ usage: debug(DBG_ERR, "Usage:\n%s [ -c ] configfile", argv[0]); exit(1); } + +/* Local Variables: */ +/* c-file-style: "stroustrup" */ +/* End: */