From: Robin Hack Date: Tue, 26 Apr 2016 09:29:43 +0000 (+0200) Subject: ctdb-tests: Fix CID 1358704 use of "=" where "==" may have been intended X-Git-Tag: talloc-2.1.7~126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a81893291c90342a594cf308768d6aefdd9fa9f;p=thirdparty%2Fsamba.git ctdb-tests: Fix CID 1358704 use of "=" where "==" may have been intended Signed-off-by: Robin Hack Reviewed-by: Amitay Isaacs Reviewed-by: Uri Simchoni Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Tue Apr 26 19:21:24 CEST 2016 on sn-devel-144 --- diff --git a/ctdb/tests/src/db_hash_test.c b/ctdb/tests/src/db_hash_test.c index 3627616313a..1f93743e000 100644 --- a/ctdb/tests/src/db_hash_test.c +++ b/ctdb/tests/src/db_hash_test.c @@ -64,7 +64,7 @@ static void do_test(enum db_hash_type type) assert(ret == 0); ret = db_hash_fetch(dh, key, sizeof(key), NULL, NULL); - assert(ret = EINVAL); + assert(ret == EINVAL); ret = db_hash_fetch(dh, key, sizeof(key), record_parser, &count); assert(ret == 0);