]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb: Fix missing NULL terminator in ldb_mod_op_test testsuite
authorAndrew Bartlett <abartlet@samba.org>
Thu, 8 Mar 2018 01:01:50 +0000 (14:01 +1300)
committerKarolin Seeger <kseeger@samba.org>
Thu, 23 Aug 2018 08:38:28 +0000 (10:38 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13575

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
(cherry picked from commit f8b368c9f0c2a34b6d15303a9d6facd762e1a517)

lib/ldb/tests/ldb_mod_op_test.c

index c8b9c1aa9ff966b606e62ba614819f874e9c753b..f52cfdefc037940edc919f4c805fd1dabe945dfa 100644 (file)
@@ -3314,7 +3314,7 @@ static int ldb_unique_index_test_setup(void **state)
                "dn: @INDEXLIST\n"
                "@IDXATTR: cn\n"
                "\n";
-       const char *options[] = {"modules:unique_index_test"};
+       const char *options[] = {"modules:unique_index_test", NULL};
 
 
        ret = ldb_register_module(&ldb_unique_index_test_module_ops);
@@ -3416,7 +3416,7 @@ static int ldb_non_unique_index_test_setup(void **state)
                "dn: @INDEXLIST\n"
                "@IDXATTR: cn\n"
                "\n";
-       const char *options[] = {"modules:unique_index_test"};
+       const char *options[] = {"modules:unique_index_test", NULL};
 
 
        ret = ldb_register_module(&ldb_unique_index_test_module_ops);