aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-08-27 23:19:18 +0200
committerpracticalswift <[email protected]>2018-08-29 20:57:41 +0200
commitdb5e9d3c88349f7e3b56f50f2e2862997e308fd9 (patch)
treebe0de6f6f5754aa86fa4298b3d811cd5488d2e6b /src/util.h
parentMerge #14097: validation: Log FormatStateMessage on ConnectBlock error in Con... (diff)
downloaddiscoin-db5e9d3c88349f7e3b56f50f2e2862997e308fd9.tar.xz
discoin-db5e9d3c88349f7e3b56f50f2e2862997e308fd9.zip
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 e93489c1e..e27e73089 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