Fix usage of history_filename

This commit is contained in:
Jeff Kowalski 2015-09-18 21:37:34 -07:00 committed by David Adam
parent b13f0701a4
commit 226cdc6a28

View File

@ -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,