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 */
|
||||
Config tConfig;
|
||||
Stream *logFile;
|
||||
Stream *pidFile = NULL;
|
||||
Stream *pidFile;
|
||||
|
||||
char *pidPath = NULL;
|
||||
char *pidPath;
|
||||
|
||||
/* User validation */
|
||||
struct passwd *userInfo;
|
||||
|
@ -137,6 +137,8 @@ start:
|
|||
flags = 0;
|
||||
dbPath = NULL;
|
||||
logFile = NULL;
|
||||
pidFile = NULL;
|
||||
pidPath = NULL;
|
||||
userInfo = NULL;
|
||||
groupInfo = NULL;
|
||||
cron = NULL;
|
||||
|
|
Loading…
Reference in a new issue