unintentional change removal
A recursive guard check was accidentally checked in with the status field stuff. Remove it.
This commit is contained in:
16
src/files.c
16
src/files.c
@@ -2275,16 +2275,12 @@ const char *reason; /* explanation */
|
||||
FILE *lfile;
|
||||
char buf[BUFSZ];
|
||||
|
||||
if (!program_state.in_paniclog) {
|
||||
program_state.in_paniclog = 1;
|
||||
lfile = fopen_datafile(PANICLOG, "a", TROUBLEPREFIX);
|
||||
if (lfile) {
|
||||
(void) fprintf(lfile, "%s %08ld: %s %s\n",
|
||||
version_string(buf), yyyymmdd((time_t)0L),
|
||||
type, reason);
|
||||
(void) fclose(lfile);
|
||||
}
|
||||
program_state.in_paniclog = 0;
|
||||
lfile = fopen_datafile(PANICLOG, "a", TROUBLEPREFIX);
|
||||
if (lfile) {
|
||||
(void) fprintf(lfile, "%s %08ld: %s %s\n",
|
||||
version_string(buf), yyyymmdd((time_t)0L),
|
||||
type, reason);
|
||||
(void) fclose(lfile);
|
||||
}
|
||||
#endif /* PANICLOG */
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user