diff --git a/lib/locking/no_locking.c b/lib/locking/no_locking.c index 0182973c9..5cbb692f8 100644 --- a/lib/locking/no_locking.c +++ b/lib/locking/no_locking.c @@ -70,7 +70,7 @@ static int _readonly_lock_resource(struct cmd_context *cmd, const char *resource, uint32_t flags) { - if (flags & LCK_TYPE_MASK == LCK_WRITE) { + if ((flags & LCK_TYPE_MASK) == LCK_WRITE) { log_error("Write locks are prohibited with --ignorelockingfailure."); return 0; }