Blame SOURCES/0015-sysdb-tests-Fix-cast-from-pointer-to-integer.patch

b2d430
From 7b8c9b01882788d5112b0a529bf74163805889d3 Mon Sep 17 00:00:00 2001
b2d430
From: Lukas Slebodnik <lslebodn@redhat.com>
b2d430
Date: Fri, 8 Jul 2016 13:37:10 +0200
b2d430
Subject: [PATCH 15/18] sysdb-tests: Fix cast from pointer to integer
b2d430
MIME-Version: 1.0
b2d430
Content-Type: text/plain; charset=UTF-8
b2d430
Content-Transfer-Encoding: 8bit
b2d430
b2d430
src/tests/sysdb-tests.c: In function 'test_sysdb_memberof_close_loop':
b2d430
src/tests/sysdb-tests.c:2740:5: warning: passing argument
b2d430
  1 of '_ck_assert_msg' makes integer from pointer without a cast
b2d430
  [enabled by default]
b2d430
     fail_unless(data->attrlist[0], "talloc_array failed.");
b2d430
     ^
b2d430
In file included from src/tests/sysdb-tests.c:23:0:
b2d430
/usr/include/check.h:237:16: note: expected 'int' but argument
b2d430
 is of type 'const char *'
b2d430
   void CK_EXPORT _ck_assert_msg (int result, const char *file,
b2d430
                  ^
b2d430
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
b2d430
b2d430
(cherry picked from commit 2bb9e88328ef44eddd935c250ae12337442c5900)
b2d430
---
b2d430
 src/tests/sysdb-tests.c | 2 +-
b2d430
 1 file changed, 1 insertion(+), 1 deletion(-)
b2d430
b2d430
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c
b2d430
index 429aa39538901fe387e41eebb27662d7b958142c..bac8a8788b4fde0d6039121efead6fc20fa046f9 100644
b2d430
--- a/src/tests/sysdb-tests.c
b2d430
+++ b/src/tests/sysdb-tests.c
b2d430
@@ -2737,7 +2737,7 @@ START_TEST (test_sysdb_memberof_close_loop)
b2d430
     fail_unless(data->attrlist != NULL, "talloc_array failed.");
b2d430
     data->attrlist[0] = test_asprintf_fqname(data, test_ctx->domain,
b2d430
                                              "testgroup%d", data->gid + 9);
b2d430
-    fail_unless(data->attrlist[0], "talloc_array failed.");
b2d430
+    fail_unless(data->attrlist[0] != NULL, "talloc_array failed.");
b2d430
     data->attrlist[1] = NULL;
b2d430
 
b2d430
     ret = test_memberof_store_group(data);
b2d430
-- 
b2d430
2.4.11
b2d430