radsecproxy: fix compilation with newer GCC

Errors on uninitialized variable. Only on powerpc64 for some reason.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2022-01-29 14:16:59 -08:00
parent 0d7ef9d9e1
commit 6e4bf0deaf
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
--- a/gconfig.c
+++ b/gconfig.c
@@ -119,7 +119,7 @@ FILE *pushgconfpaths(struct gconffile **
int i;
FILE *f = NULL;
glob_t globbuf;
- char *path, *curfile = NULL, *dir;
+ char *path = NULL, *curfile = NULL, *dir;
/* if cfgpath is relative, make it relative to current config */
if (*cfgpath == '/')