Skip to content

Commit

Permalink
Fix uninitialised memory bug causing cpuset not to be configured corr…
Browse files Browse the repository at this point in the history
…ectly
  • Loading branch information
bblackham committed Jul 27, 2017
1 parent 7f55e36 commit b13c4e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ cf_per_box(int box_id)
return c;

c = xmalloc(sizeof(*c));
memset(c, 0, sizeof(*c));
c->next = per_box_configs;
per_box_configs = c;
c->box_id = box_id;
Expand Down

0 comments on commit b13c4e3

Please sign in to comment.