From: Peter Krempa Date: Wed, 7 Mar 2012 14:31:54 +0000 (+0100) Subject: sanlock: Fix condition left crippled while debugging X-Git-Tag: v0.9.11-rc1~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bf5f0427a7fe5680bf164425e14cdc259599057;p=thirdparty%2Flibvirt.git sanlock: Fix condition left crippled while debugging --- diff --git a/src/locking/lock_driver_sanlock.c b/src/locking/lock_driver_sanlock.c index 13940f1d9d..295e45d98b 100644 --- a/src/locking/lock_driver_sanlock.c +++ b/src/locking/lock_driver_sanlock.c @@ -702,7 +702,7 @@ static int virLockManagerSanlockAcquire(virLockManagerPtr lock, goto error; } - if (state && STRNEQ(state, "") && 0) { + if (state && STRNEQ(state, "")) { if ((rv = sanlock_state_to_args((char *)state, &res_count, &res_args)) < 0) {