diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-08-27 23:19:18 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-08-29 20:57:41 +0200 |
commit | db5e9d3c88349f7e3b56f50f2e2862997e308fd9 (patch) | |
tree | be0de6f6f5754aa86fa4298b3d811cd5488d2e6b /src/util.h | |
parent | 4e9a6f87b7d25d56fca4166bd929003cf15c9b58 (diff) | |
download | bitcoin-db5e9d3c88349f7e3b56f50f2e2862997e308fd9.tar.xz |
Add missing locks (cs_args)
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 5 |
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 |