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)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 6 Apr 2018 00:08:44 +0000 (02:08 +0200)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/ldb/tests/ldb_mod_op_test.c

index d024ab66e3e9a6fc293a1c6c408f0bb9e4ce6adb..59fc766e91872d5d57deaee5cbd17d214a4783bb 100644 (file)
@@ -3099,7 +3099,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);
@@ -3201,7 +3201,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);