summaryrefslogtreecommitdiff
path: root/bashhist.c
diff options
context:
space:
mode:
Diffstat (limited to 'bashhist.c')
-rw-r--r--bashhist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bashhist.c b/bashhist.c
index 7240a5bd..bf4c6634 100644
--- a/bashhist.c
+++ b/bashhist.c
@@ -351,6 +351,7 @@ void
save_history ()
{
char *hf;
+ int r;
hf = get_string_value ("HISTFILE");
if (hf && *hf && file_exists (hf))
@@ -360,9 +361,9 @@ save_history ()
using_history ();
if (history_lines_this_session <= where_history () || force_append_history)
- append_history (history_lines_this_session, hf);
+ r = append_history (history_lines_this_session, hf);
else
- write_history (hf);
+ r = write_history (hf);
sv_histsize ("HISTFILESIZE");
}
}