aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/history.cpp
diff options
context:
space:
mode:
authorGravatar Jeff Kowalski <jeff.kowalski@gmail.com>2015-09-18 21:37:34 -0700
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-10-16 07:40:04 +0800
commit226cdc6a28b13189d541f7b11bcfdaa1ce1fc82b (patch)
tree02c3a75a79fe8fb776664531e0f97569ea81376b /src/history.cpp
parentb13f0701a45f45568060d7dd7a5fed1052e9be60 (diff)
Fix usage of history_filename
Diffstat (limited to 'src/history.cpp')
-rw-r--r--src/history.cpp3
1 files changed, 1 insertions, 2 deletions
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,