Skip to content

Commit

Permalink
replace bzero by memset
Browse files Browse the repository at this point in the history
  • Loading branch information
lefessan committed Oct 25, 2024
1 parent 59d8020 commit 68d6021
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ctypes_gen_lib/gen_printer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ static void init_ptr_table ()
ptr_table = (void**) calloc (ptr_table_size, sizeof (void*) );
num_table = (int*) calloc (ptr_table_size, sizeof (int) );
} else {
bzero (ptr_table, ptr_table_size * sizeof(void*) );
bzero (num_table, ptr_table_size * sizeof(int) );
memset (ptr_table, 0, ptr_table_size * sizeof(void*) );
memset (num_table, 0, ptr_table_size * sizeof(int) );
ptr_table_used = 0;
}
}
Expand Down

0 comments on commit 68d6021

Please sign in to comment.