Skip to content
Snippets Groups Projects
Commit 186fa616 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

oops, fix initialization

parent 4866e632
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ LPCNET_EXPORT void lpcnet_plc_init(LPCNetPLCState *st) {
LPCNET_EXPORT LPCNetPLCState *lpcnet_plc_create() {
LPCNetPLCState *st;
st = malloc(sizeof(*st));
st = calloc(sizeof(*st), 1);
lpcnet_plc_init(st);
return st;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment