PID File: Properly initialize variables in Main().

This commit is contained in:
Jordan Bancino 2024-01-05 21:02:45 -05:00
parent 83eb69f2cd
commit 35b9ef51f9
1 changed files with 4 additions and 2 deletions

View File

@ -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;