aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-07-29 14:41:21 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-07-29 14:42:03 -0700
commit52ae5f885e9c72b7b1477156bdb946fc78294052 (patch)
tree10bb26e2dc7f7c4c79fbf11aca2d34ae6f44e436 /env.cpp
parentb6658c54974f0488de89042545e417d2b9d2b5eb (diff)
Improve history robustness against corrupt files
Fixes #1581
Diffstat (limited to 'env.cpp')
-rw-r--r--env.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/env.cpp b/env.cpp
index 8f43d888..88d61c85 100644
--- a/env.cpp
+++ b/env.cpp
@@ -953,7 +953,7 @@ env_var_t env_get_string(const wcstring &key, env_mode_flags_t mode)
history = &history_t::history_with_name(L"fish");
}
if (history)
- history->get_string_representation(result, ARRAY_SEP_STR);
+ history->get_string_representation(&result, ARRAY_SEP_STR);
return result;
}
else if (key == L"COLUMNS")