summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b08de84)
Ensure all pointers from the context are NULL.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
{
struct discover_context *ctx;
{
struct discover_context *ctx;
- ctx = talloc(handler, struct discover_context);
+ ctx = talloc_zero(handler, struct discover_context);
- ctx->conf_url = NULL;
- ctx->test_data = NULL;
list_init(&ctx->boot_options);
return ctx;
list_init(&ctx->boot_options);
return ctx;