X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=a497147918d43232498d23eeb833b4101d1ec6c0;hp=43bcd9f760249444d86eae8587bfb8725d8987b6;hb=1cb9c56d6453bca28cacb5ab3fc134bb151fd6f0;hpb=b08de841267546726f452c89cc326a493ec6549c diff --git a/discover/device-handler.c b/discover/device-handler.c index 43bcd9f..a497147 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -524,10 +524,8 @@ struct discover_context *device_handler_discover_context_create( { struct discover_context *ctx; - ctx = talloc(handler, struct discover_context); + ctx = talloc_zero(handler, struct discover_context); ctx->device = device; - ctx->conf_url = NULL; - ctx->test_data = NULL; list_init(&ctx->boot_options); return ctx;