From 226cdc6a28b13189d541f7b11bcfdaa1ce1fc82b Mon Sep 17 00:00:00 2001 From: Jeff Kowalski Date: Fri, 18 Sep 2015 21:37:34 -0700 Subject: Fix usage of history_filename --- src/history.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/history.cpp') diff --git a/src/history.cpp b/src/history.cpp index 96ff3db8..112af1ea 100644 --- a/src/history.cpp +++ b/src/history.cpp @@ -1680,8 +1680,7 @@ void history_t::populate_from_config_path() int src_fd = wopen_cloexec(old_file, O_RDONLY, 0); if (src_fd != -1) { - wcstring new_file; - history_filename(new_file, L""); + wcstring new_file = history_filename(name, wcstring()); /* clear must come after we've retrieved the new_file name, and before we open destination file descriptor, -- cgit v1.2.3