drivers/goodfet.c: initialize driver struct

This commit is contained in:
zcsahok 2016-04-20 23:09:56 +02:00
parent 1bfb30ab59
commit 7cbc37c633
1 changed files with 1 additions and 0 deletions

View File

@ -528,6 +528,7 @@ static device_t goodfet_open(const struct device_args *args)
return NULL; return NULL;
} }
memset(gc, 0, sizeof(*gc));
gc->base.type = &device_goodfet; gc->base.type = &device_goodfet;
gc->base.max_breakpoints = 0; gc->base.max_breakpoints = 0;
gc->base.need_probe = 1; gc->base.need_probe = 1;