From 2b95b3dff1a4dac709226a320d1a0428fa508116 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 4 Apr 2016 12:59:23 +0200 Subject: [PATCH] sdlog2: fixed wrong memset --- src/modules/sdlog2/sdlog2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 87fb244aaf..e379c2168e 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1108,7 +1108,7 @@ int sdlog2_thread_main(int argc, char *argv[]) memset(&buf_gps_pos, 0, sizeof(buf_gps_pos)); struct vehicle_command_s buf_cmd; - memset(&buf_status, 0, sizeof(buf_cmd)); + memset(&buf_cmd, 0, sizeof(buf_cmd)); // check if we are gathering data for a replay log for ekf2 // is yes then disable logging of some topics to avoid dropouts