From 220ad9aa2310047d88c06e59fc70e649f33d8396 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Fri, 20 Apr 2001 06:13:35 +0000 Subject: Parameter repairs, mostly for subscripting. --- Src/hist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/hist.c') diff --git a/Src/hist.c b/Src/hist.c index a80a21967..58fe748be 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -1011,7 +1011,6 @@ hend(Eprog prog) DPUTS(stophist != 2 && !(inbufflags & INP_ALIAS) && !chline, "BUG: chline is NULL in hend()"); queue_signals(); - hf = getsparam("HISTFILE"); if (histdone & HISTFLAG_SETTY) settyinfo(&shttyinfo); if (!(histactive & HA_NOINC)) @@ -1028,6 +1027,7 @@ hend(Eprog prog) && (hist_ignore_all_dups = isset(HISTIGNOREALLDUPS)) != 0) histremovedups(); /* For history sharing, lock history file once for both read and write */ + hf = getsparam("HISTFILE"); if (isset(SHAREHISTORY) && lockhistfile(hf, 0)) { readhistfile(hf, 0, HFILE_USE_OPTIONS | HFILE_FAST); curline.histnum = curhist+1; -- cgit v1.2.3