aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-08-27 23:19:18 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-08-29 20:57:41 +0200
commitdb5e9d3c88349f7e3b56f50f2e2862997e308fd9 (patch)
treebe0de6f6f5754aa86fa4298b3d811cd5488d2e6b /src/util.h
parent4e9a6f87b7d25d56fca4166bd929003cf15c9b58 (diff)
Add missing locks (cs_args)
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index e93489c1ed..e27e73089e 100644
--- a/src/util.h
+++ b/src/util.h
@@ -262,7 +262,10 @@ public:
/**
* Clear available arguments
*/
- void ClearArgs() { m_available_args.clear(); }
+ void ClearArgs() {
+ LOCK(cs_args);
+ m_available_args.clear();
+ }
/**
* Get the help string