summaryrefslogtreecommitdiffstats
path: root/low-can-binding
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2020-01-23 14:32:33 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2020-01-23 14:51:25 -0800
commitd1c46ecb316453ea8d3cc0b148c35a816772532b (patch)
tree136f7d048547397b9f399875302f7b6ce5ebe8d2 /low-can-binding
parent5c9daf29edd17f4cb39df850e0c451b368072def (diff)
low-can: fix returned event_t from generate_filter() uninitialized
Bug-AGL: SPEC-3129 Change-Id: I003a98863b78b49e85638bbb7e9b0d0fbde5a2b7 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'low-can-binding')
-rw-r--r--low-can-binding/binding/low-can-cb.cpp2
1 files changed, 1 insertions, 1 deletions
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