summaryrefslogtreecommitdiffstats
path: root/src/tests/sysdb-tests.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-09-09 21:07:37 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-09-10 10:32:29 +0200
commit6a8999bf933f72923a271831d85a01ef88a81f39 (patch)
tree88716952059d2de92d9524de67be55bc232d2492 /src/tests/sysdb-tests.c
parentf74707245f0517e8d1f2fa7817600ecbc71680c1 (diff)
downloadsssd-6a8999bf933f72923a271831d85a01ef88a81f39.tar.gz
sssd-6a8999bf933f72923a271831d85a01ef88a81f39.tar.xz
sssd-6a8999bf933f72923a271831d85a01ef88a81f39.zip
SYSDB: NULL-terminate the output of sysdb_get_{ranges,subdomains}
Diffstat (limited to 'src/tests/sysdb-tests.c')
-rw-r--r--src/tests/sysdb-tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c
index be86f846..88d959c0 100644
--- a/src/tests/sysdb-tests.c
+++ b/src/tests/sysdb-tests.c
@@ -3414,7 +3414,7 @@ START_TEST(test_sysdb_subdomain_create)
fail_unless(ret == EOK, "sysdb_get_subdomains failed with [%d][%s]",
ret, strerror(ret));
fail_unless(cur_subdomains != NULL, "No sub-domains returned.");
- fail_unless(cur_subdomains[0] == NULL, "No empyt sub-domain list returned.");
+ fail_unless(cur_subdomains[0] == NULL, "No empty sub-domain list returned.");
ret = sysdb_update_subdomains(test_ctx->sysdb, num_subdom1, new_subdom1);
fail_unless(ret == EOK, "sysdb_update_subdomains failed with [%d][%s]",
@@ -3453,7 +3453,7 @@ START_TEST(test_sysdb_subdomain_create)
fail_unless(ret == EOK, "sysdb_get_subdomains failed with [%d][%s]",
ret, strerror(ret));
fail_unless(cur_subdomains != NULL, "No sub-domains returned.");
- fail_unless(cur_subdomains[0] == NULL, "No empyt sub-domain list returned.");
+ fail_unless(cur_subdomains[0] == NULL, "No empty sub-domain list returned.");
}
END_TEST