mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 07:03:33 +08:00
Replace a lot of memset with {} initializers
This commit is contained in:
committed by
Daniel Agar
parent
b8f70e865c
commit
e843090383
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user