[X2Go-Commits] [nx-libs] 15/219: Reconnect.c: initialize stateFile path
git-admin at x2go.org
git-admin at x2go.org
Sat Sep 28 12:10:12 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit dece08252b6696b74091ebcde3dc557e2e60171b
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Mon Apr 29 22:02:47 2019 +0200
Reconnect.c: initialize stateFile path
We check that via strlen() while never properly initializing it.
---
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
index a921df6ca..b78c01e30 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
@@ -134,7 +134,7 @@ static enum RECONNECTION_STEP failedStep;
/*
* Path of state File
*/
-char stateFile[PATH_MAX];
+char stateFile[PATH_MAX] = {0};
void setStatePath(char* path)
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list