mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Make a string into a reference, to save a copy
This commit is contained in:
parent
00e0ed64bc
commit
338a1311f5
1 changed files with 1 additions and 1 deletions
|
@ -718,7 +718,7 @@ bool env_universal_t::sync(callback_data_list_t *callbacks)
|
|||
|
||||
Prior versions of fish used a hard link scheme to support file locking on lockless NFS. The risk here is that if the process crashes or is killed while holding the lock, future instances of fish will not be able to obtain it. This seems to be a greater risk than that of data loss on lockless NFS. Users who put their home directory on lockless NFS are playing with fire anyways.
|
||||
*/
|
||||
const wcstring vars_path = explicit_vars_path.empty() ? default_vars_path() : explicit_vars_path;
|
||||
const wcstring &vars_path = explicit_vars_path.empty() ? default_vars_path() : explicit_vars_path;
|
||||
|
||||
/* If we have no changes, just load */
|
||||
if (modified.empty())
|
||||
|
|
Loading…
Reference in a new issue