nbt_server/wins: use talloc_zero() to create struct winsdb_handle
[samba.git] / source4 / nbt_server / wins / wins_ldb.c
index 02ea30624309bd3f848d5922d3e1675cd793a37b..557c0f1dc6e7cc4d939e861d3ccd9821ffe8f6c5 100644 (file)
@@ -98,7 +98,7 @@ static int wins_ldb_init(struct ldb_module *ctx)
                }
        }
 
-       h = talloc(ctx, struct winsdb_handle);
+       h = talloc_zero(ctx, struct winsdb_handle);
        if (!h) goto failed;
        h->ldb          = ctx->ldb;
        h->caller       = WINSDB_HANDLE_CALLER_ADMIN;