diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-07-08 13:37:10 +0200 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-07-12 16:35:19 +0200 |
commit | 2bb9e88328ef44eddd935c250ae12337442c5900 (patch) | |
tree | 9a6443d05c5da8974f9b8a9a4259d54e6a1f0b72 | |
parent | 0a172552ec16f3b84d127399551cad786da8fd9d (diff) | |
download | sssd-2bb9e88328ef44eddd935c250ae12337442c5900.tar.gz sssd-2bb9e88328ef44eddd935c250ae12337442c5900.tar.xz sssd-2bb9e88328ef44eddd935c250ae12337442c5900.zip |
sysdb-tests: Fix cast from pointer to integer
src/tests/sysdb-tests.c: In function 'test_sysdb_memberof_close_loop':
src/tests/sysdb-tests.c:2740:5: warning: passing argument
1 of '_ck_assert_msg' makes integer from pointer without a cast
[enabled by default]
fail_unless(data->attrlist[0], "talloc_array failed.");
^
In file included from src/tests/sysdb-tests.c:23:0:
/usr/include/check.h:237:16: note: expected 'int' but argument
is of type 'const char *'
void CK_EXPORT _ck_assert_msg (int result, const char *file,
^
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
-rw-r--r-- | src/tests/sysdb-tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index 429aa3953..bac8a8788 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -2737,7 +2737,7 @@ START_TEST (test_sysdb_memberof_close_loop) fail_unless(data->attrlist != NULL, "talloc_array failed."); data->attrlist[0] = test_asprintf_fqname(data, test_ctx->domain, "testgroup%d", data->gid + 9); - fail_unless(data->attrlist[0], "talloc_array failed."); + fail_unless(data->attrlist[0] != NULL, "talloc_array failed."); data->attrlist[1] = NULL; ret = test_memberof_store_group(data); |