From d1c46ecb316453ea8d3cc0b148c35a816772532b Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Thu, 23 Jan 2020 14:32:33 -0800 Subject: low-can: fix returned event_t from generate_filter() uninitialized Bug-AGL: SPEC-3129 Change-Id: I003a98863b78b49e85638bbb7e9b0d0fbde5a2b7 Signed-off-by: Matt Ranostay --- low-can-binding/binding/low-can-cb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'low-can-binding') diff --git a/low-can-binding/binding/low-can-cb.cpp b/low-can-binding/binding/low-can-cb.cpp index 5e4c16a5..3897f8b4 100644 --- a/low-can-binding/binding/low-can-cb.cpp +++ b/low-can-binding/binding/low-can-cb.cpp @@ -297,7 +297,7 @@ static int subscribe_unsubscribe_signals(afb_req_t request, static event_filter_t generate_filter(json_object* args) { - event_filter_t event_filter; + event_filter_t event_filter = {}; struct json_object *filter, *obj; // computes the filter -- cgit 1.2.3-korg