From ea7d7ea31d2d48730ccaf37e1c96c43f6b255fa8 Mon Sep 17 00:00:00 2001 From: Andrew Moss <1043609+amoss@users.noreply.github.com> Date: Thu, 4 Jun 2020 18:24:04 +0200 Subject: Fix Coverity defects 359164, 359165 and 358989. (#9268) Removed uses of the host lock that could deadlock senders and replaced with the new fine-grained mutex. --- daemon/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemon') diff --git a/daemon/commands.c b/daemon/commands.c index 8ea868fee1..1944b6c370 100644 --- a/daemon/commands.c +++ b/daemon/commands.c @@ -673,7 +673,7 @@ void commands_init(void) info("Initializing command server."); for (i = 0 ; i < CMD_TOTAL_COMMANDS ; ++i) { - uv_mutex_init(&command_lock_array[i]); + assert(0 == uv_mutex_init(&command_lock_array[i])); } assert(0 == uv_rwlock_init(&exclusive_rwlock)); -- cgit v1.2.3