Merge 5eb422ae9303807d28c461adc91230446da8db58 on remote branch
Change-Id: I082a65fc9cb3522c7ac25fbf5ad8315fd8804f4d
diff --git a/fm_hci/fm_hci.cpp b/fm_hci/fm_hci.cpp
index 0869afc..c08b884 100644
--- a/fm_hci/fm_hci.cpp
+++ b/fm_hci/fm_hci.cpp
@@ -573,9 +573,10 @@
struct fm_event_header_t *temp = (struct fm_event_header_t *) malloc(event.size());
if (temp != nullptr) {
memcpy(temp, event.data(), event.size());
- ALOGI("%s: evt_code: 0x%x", __func__, temp->evt_code);
+ uint8_t evt = temp->evt_code;
+ ALOGI("%s: evt_code: 0x%x", __func__, evt);
enqueue_fm_rx_event(temp);
- ALOGI("%s: evt_code: 0x%x done", __func__, temp->evt_code);
+ ALOGI("%s: evt_code: 0x%x done", __func__, evt);
} else {
ALOGE("%s: Memory Allocation failed for event buffer ",__func__);
}