From 57a6554d8863363c041905607e44459f792225c7 Mon Sep 17 00:00:00 2001 From: Ondrej Kos Date: Mar 18 2013 09:42:42 +0000 Subject: Fix coverity issue 13136 https://fedorahosted.org/sssd/ticket/1811 --- diff --git a/src/tests/pac_responder-tests.c b/src/tests/pac_responder-tests.c index 847dbe0..4b6f03f 100644 --- a/src/tests/pac_responder-tests.c +++ b/src/tests/pac_responder-tests.c @@ -310,6 +310,7 @@ START_TEST(pac_test_find_domain_by_id) fail_unless(id != NULL, "talloc_asprintf failed.\n"); dom = find_domain_by_id(domains, id); + fail_unless(dom != NULL, "Domain %zu not found by id.", c); fail_unless((strcmp(dom->domain_id, id) == 0), "Wrong domain returned for id [%s].", id);