ntdb: simply disallow NULL names.
[kai/samba-autobuild/.git] / lib / ntdb / test / helprun-layout.c
index c8f1fd03c49b61466b54c484214cc3de5bac2c88..7f1f9f9d8e4b85220024f2fac185ef393ecfc195 100644 (file)
@@ -313,7 +313,7 @@ struct ntdb_context *ntdb_layout_get(struct ntdb_layout *layout,
        /* Fill with some weird pattern. */
        memset(mem, 0x99, off);
        /* Now populate our header, cribbing from a real NTDB header. */
-       ntdb = ntdb_open(NULL, NTDB_INTERNAL, O_RDWR, 0, attr);
+       ntdb = ntdb_open("layout", NTDB_INTERNAL, O_RDWR, 0, attr);
        memcpy(mem, ntdb->file->map_ptr, sizeof(struct ntdb_header));
 
        /* Mug the ntdb we have to make it use this. */