radsecproxy: fix compilation with newer GCC
authorRosen Penev <redacted>
Sat, 29 Jan 2022 22:16:59 +0000 (14:16 -0800)
committerRosen Penev <redacted>
Sun, 30 Jan 2022 00:38:49 +0000 (16:38 -0800)
Errors on uninitialized variable. Only on powerpc64 for some reason.

Signed-off-by: Rosen Penev <redacted>
net/radsecproxy/Makefile
net/radsecproxy/patches/300-uninit.patch [new file with mode: 0644]

index 5207e57194e703622e31746fb7b7c6aafa8c6895..0f89fac019babff1b316b2e6cfb564b03e9521e3 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=radsecproxy
 PKG_VERSION:=1.9.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/radsecproxy/radsecproxy/releases/download/$(PKG_VERSION)/
diff --git a/net/radsecproxy/patches/300-uninit.patch b/net/radsecproxy/patches/300-uninit.patch
new file mode 100644 (file)
index 0000000..578c868
--- /dev/null
@@ -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 == '/')
git clone https://git.99rst.org/PROJECT