From 4a4932e5ff749a16513c13936c71a78f55067c40 Mon Sep 17 00:00:00 2001 From: peabody124 Date: Mon, 13 Sep 2010 19:04:37 +0000 Subject: [PATCH] AHRS/FSM: Small initialization detail to make compile with -Os git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1610 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/AHRS/ahrs_fsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/AHRS/ahrs_fsm.c b/flight/AHRS/ahrs_fsm.c index 01202dde5..1661716df 100644 --- a/flight/AHRS/ahrs_fsm.c +++ b/flight/AHRS/ahrs_fsm.c @@ -564,8 +564,8 @@ void lfsm_irq_callback(uint8_t crc_ok, uint8_t crc_val) } /* Recover the head and tail pointers from the message */ - struct opahrs_msg_link_head * head; - struct opahrs_msg_link_tail * tail; + struct opahrs_msg_link_head * head = NULL; + struct opahrs_msg_link_tail * tail = NULL; switch (context.user_payload_type) { case OPAHRS_MSG_TYPE_USER_V0: