From ad526bb6c269419ccaa07289b578b53d86e88619 Mon Sep 17 00:00:00 2001 From: venaas Date: Tue, 10 Jun 2008 11:11:54 +0000 Subject: removed some harmless compiler warnings git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@289 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- gconfig.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'gconfig.c') diff --git a/gconfig.c b/gconfig.c index 7a367e7..5efc97f 100644 --- a/gconfig.c +++ b/gconfig.c @@ -89,7 +89,7 @@ FILE *pushgconffile(struct gconffile **cf, const char *path) { FILE *pushgconffiles(struct gconffile **cf, const char *cfgpath) { int i; - FILE *f; + FILE *f = NULL; glob_t globbuf; char *path, *curfile = NULL, *dir; @@ -108,10 +108,9 @@ FILE *pushgconffiles(struct gconffile **cf, const char *cfgpath) { strcpy(path + strlen(dir) + 1, cfgpath); } memset(&globbuf, 0, sizeof(glob_t)); - if (glob(path, 0, NULL, &globbuf)) { + if (glob(path, 0, NULL, &globbuf)) debug(DBG_INFO, "could not glob %s", path); - f = NULL; - } else { + else { for (i = globbuf.gl_pathc - 1; i >= 0; i--) { f = pushgconffile(cf, globbuf.gl_pathv[i]); if (!f) @@ -237,7 +236,7 @@ void getconfigline(struct gconffile **cf, char *block, char **opt, char **val, i void getgenericconfig(struct gconffile **cf, char *block, ...) { va_list ap; char *opt = NULL, *val, *word, *optval, **str = NULL, ***mstr = NULL; - uint8_t *bln; + uint8_t *bln = NULL; int type = 0, conftype = 0, n; void (*cbk)(struct gconffile **, char *, char *, char *) = NULL; -- cgit v1.1