]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tests: Fix CID 1358704 use of "=" where "==" may have been intended
authorRobin Hack <hack.robin@gmail.com>
Tue, 26 Apr 2016 09:29:43 +0000 (11:29 +0200)
committerAmitay Isaacs <amitay@samba.org>
Tue, 26 Apr 2016 17:21:24 +0000 (19:21 +0200)
Signed-off-by: Robin Hack <hack.robin@gmail.com>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Apr 26 19:21:24 CEST 2016 on sn-devel-144

ctdb/tests/src/db_hash_test.c

index 3627616313a3d264454438d5a8ff7024fc5d0699..1f93743e0007ceff67faa8af6f8b290d71e62efa 100644 (file)
@@ -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);