← Commit list

7d782e881

Denys Vlasenko
Denys Vlasenko
2025-08-03
SUCCESS Duration: 153s

Subject

shell: fix the check of empty HISTFILE

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/lineedit.c+1 -1
@@ -1564,7 +1564,7 @@ void FAST_FUNC save_history(line_input_t *st)
FILE *fp;
/* bash compat: HISTFILE="" disables history saving */
- if (!st || !st->hist_file || !state->hist_file[0])
+ if (!st || !st->hist_file || !st->hist_file[0])
return;
if (st->cnt_history <= st->cnt_history_in_file)
return; /* no new entries were added */