forked from Telodendria/Telodendria
PID File: Properly initialize variables in Main().
This commit is contained in:
parent
83eb69f2cd
commit
35b9ef51f9
1 changed files with 4 additions and 2 deletions
|
@ -105,9 +105,9 @@ Main(Array * args)
|
||||||
/* Program configuration */
|
/* Program configuration */
|
||||||
Config tConfig;
|
Config tConfig;
|
||||||
Stream *logFile;
|
Stream *logFile;
|
||||||
Stream *pidFile = NULL;
|
Stream *pidFile;
|
||||||
|
|
||||||
char *pidPath = NULL;
|
char *pidPath;
|
||||||
|
|
||||||
/* User validation */
|
/* User validation */
|
||||||
struct passwd *userInfo;
|
struct passwd *userInfo;
|
||||||
|
@ -137,6 +137,8 @@ start:
|
||||||
flags = 0;
|
flags = 0;
|
||||||
dbPath = NULL;
|
dbPath = NULL;
|
||||||
logFile = NULL;
|
logFile = NULL;
|
||||||
|
pidFile = NULL;
|
||||||
|
pidPath = NULL;
|
||||||
userInfo = NULL;
|
userInfo = NULL;
|
||||||
groupInfo = NULL;
|
groupInfo = NULL;
|
||||||
cron = NULL;
|
cron = NULL;
|
||||||
|
|
Loading…
Reference in a new issue