aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-29 11:28:00 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-04-29 11:28:00 -0700
commita949f0b0c3b3a257b93f87e4db05f0268582bb06 (patch)
tree1efc067bb3d92fb3ce3253330bdf1a424179b85a /fish_tests.cpp
parentffc23046a2dd2963a5a434d86326b12f74bb1cee (diff)
Move universal variable callbacks out from under the lock, to avoid a
possible deadlock on reentrancy
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r--fish_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index b761f691..73a63a88 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -2170,7 +2170,7 @@ static int test_universal_helper(int *x)
const wcstring key = format_string(L"key_%d_%d", *x, j);
const wcstring val = format_string(L"val_%d_%d", *x, j);
uvars.set(key, val, false);
- bool synced = uvars.sync();
+ bool synced = uvars.sync(NULL);
if (! synced)
{
err(L"Failed to sync universal variables");