diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 304cb5208..422a4620a 100644 --- a/src/main.c +++ b/src/main.c @@ -478,6 +478,7 @@ void killFromPidFile(char * cmd, int killOption) { /*char buf[32]; struct stat st_cmd; struct stat st_exe;*/ + FILE * fp; ConfigParam * pidFileParam = parseConfigFilePath(CONF_PID_FILE, 0); int pid; @@ -486,7 +487,7 @@ void killFromPidFile(char * cmd, int killOption) { exit(EXIT_FAILURE); } - FILE * fp = fopen(pidFileParam->value,"r"); + fp = fopen(pidFileParam->value,"r"); if(!fp) { ERROR("unable to open %s \"%s\": %s\n", CONF_PID_FILE, pidFileParam->value, |