Skip to content

Commit

Permalink
Initialise newmask to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Johnson committed Oct 3, 2012
1 parent 83a488e commit c57a4d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/affinity1.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ main()
cpu_set_t src2mask;
cpu_set_t src3mask;

CPU_ZERO(&newmask);
CPU_ZERO(&src1mask);
memset(&src2mask, 0, sizeof(cpu_set_t));
assert(memcmp(&src1mask, &src2mask, sizeof(cpu_set_t)) == 0);
Expand Down

0 comments on commit c57a4d8

Please sign in to comment.