aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-04-29 22:02:47 +0200
committerUlrich Sibiller <uli42@gmx.de>2019-05-10 19:02:51 +0200
commitdece08252b6696b74091ebcde3dc557e2e60171b (patch)
treee4cd7dadbd1a26b4371961b57e79397417c3a15a /nx-X11/programs/Xserver
parentff5740e039c05e04952496fe67385187daa53222 (diff)
downloadnx-libs-dece08252b6696b74091ebcde3dc557e2e60171b.tar.gz
nx-libs-dece08252b6696b74091ebcde3dc557e2e60171b.tar.bz2
nx-libs-dece08252b6696b74091ebcde3dc557e2e60171b.zip
Reconnect.c: initialize stateFile path
We check that via strlen() while never properly initializing it.
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Reconnect.c2
1 files changed, 1 insertions, 1 deletions
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)