Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 3313031a authored by Rob Swindell's avatar Rob Swindell 💬

Don't fclose(errfp) if it's NULL.

parent 5b359484
Pipeline #2398 failed with stage
in 8 minutes and 50 seconds
......@@ -1296,7 +1296,7 @@ int main(int argc, char **argv, char** env)
err_level=parseLogLevel(p);
break;
case 'e':
if (errfp != stderr)
if (errfp != NULL && errfp != stderr)
fclose(errfp);
if((errfp=fopen(p,omode))==NULL) {
perror(p);
......@@ -1340,7 +1340,7 @@ int main(int argc, char **argv, char** env)
omode="a";
break;
case 'A':
if (errfp != stderr)
if (errfp != NULL && errfp != stderr)
fclose(errfp);
if(*p == '\0') {
errfp = stdout;
......
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