Commit dece0825 authored by Ulrich Sibiller's avatar Ulrich Sibiller

Reconnect.c: initialize stateFile path

We check that via strlen() while never properly initializing it.
parent ff5740e0
...@@ -134,7 +134,7 @@ static enum RECONNECTION_STEP failedStep; ...@@ -134,7 +134,7 @@ static enum RECONNECTION_STEP failedStep;
/* /*
* Path of state File * Path of state File
*/ */
char stateFile[PATH_MAX]; char stateFile[PATH_MAX] = {0};
void setStatePath(char* path) void setStatePath(char* path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment