diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2017-10-23 15:43:39 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2017-10-23 15:43:39 +0000 |
commit | 9fd3b4102aacf4cca1a380351be0cfd279e402d7 (patch) | |
tree | e99a3a877f17659e509a7d43197832a316e136b9 /bin/ksh/history.c | |
parent | 4d3258bbd465ecb78c1a07d20c32799029754dd5 (diff) |
Kill needless rewind(3) call in hist_init()
We may have read two bytes from the file, but history_load() needs to
call rewind(3) anyway. ok benno@
Diffstat (limited to 'bin/ksh/history.c')
-rw-r--r-- | bin/ksh/history.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c index 5dee6dd978c..14919d8b092 100644 --- a/bin/ksh/history.c +++ b/bin/ksh/history.c @@ -1,4 +1,4 @@ -/* $OpenBSD: history.c,v 1.73 2017/10/23 15:41:39 jca Exp $ */ +/* $OpenBSD: history.c,v 1.74 2017/10/23 15:43:38 jca Exp $ */ /* * command history @@ -814,8 +814,6 @@ hist_init(Source *s) return; } - rewind(histfh); - history_load(s); history_lock(LOCK_UN); |