We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7300fdb commit acb74c5Copy full SHA for acb74c5
src/util.c
@@ -405,10 +405,8 @@ save_pid_file(const char *pf)
405
int ret = fclose(f);
406
if (ret == EOF) /* check the return value of fclose */
407
debug(LOG_ERR, "fclose() on file %s was failed (%s)", pf, strerror(errno));
408
- }
409
-
410
- /* fopen return NULL, open file failed */
411
- debug(LOG_ERR, "fopen() on flie %s was failed (%s)", pf, strerror(errno));
+ } else /* fopen return NULL, open file failed */
+ debug(LOG_ERR, "fopen() on flie %s was failed (%s)", pf, strerror(errno));
412
}
413
414
return;
0 commit comments