summaryrefslogtreecommitdiffstats
path: root/src/tests/util-tests.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-04-08 11:17:44 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-04-08 15:23:32 +0200
commite11b9f85b5ad0454cdf3828c4876ec7de3f4799a (patch)
tree487d699120a399afe5975d52efffe7727e5a9ac3 /src/tests/util-tests.c
parent450c2b78ff0bd5044c4c73f32ca8459b211dd446 (diff)
downloadsssd-e11b9f85b5ad0454cdf3828c4876ec7de3f4799a.tar.gz
sssd-e11b9f85b5ad0454cdf3828c4876ec7de3f4799a.tar.xz
sssd-e11b9f85b5ad0454cdf3828c4876ec7de3f4799a.zip
tests: Revert strcmp condition
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/tests/util-tests.c')
-rw-r--r--src/tests/util-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/util-tests.c b/src/tests/util-tests.c
index f9301a523..24ee6ab49 100644
--- a/src/tests/util-tests.c
+++ b/src/tests/util-tests.c
@@ -1013,7 +1013,7 @@ START_TEST(test_known_service)
svcs = get_known_services();
for (i = 0; svcs[i]; i++) {
ck_assert_str_ne(svcs[i], "nosuchservice");
- if (strcmp(svcs[i], "nss")) {
+ if (strcmp(svcs[i], "nss") == 0) {
found_nss = true;
}
}