Replace a lot of memset with {} initializers

This commit is contained in:
Matthias Grob
2019-10-15 10:01:03 -04:00
committed by Daniel Agar
parent b8f70e865c
commit e843090383
12 changed files with 35 additions and 80 deletions
@@ -96,8 +96,7 @@ int calc_timer_diff_to_dsp_us(int32_t *time_diff_us)
return -1;
}
char buffer[21];
memset(buffer, 0, sizeof(buffer));
char buffer[21] {};
int bytes_read = read(fd, buffer, sizeof(buffer));
if (bytes_read < 0) {