mesh: Zero out config node struct before initializing
authorInga Stotland <inga.stotland@intel.com>
Wed, 2 Dec 2020 21:11:51 +0000 (13:11 -0800)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commit892f03dd5b768dead05633028ed96ea58ea2eb11
treede59ac1f00be9516e119bfb59a627cb06a68c724
parent0d09f6189ae35b93ff3879210cc5ecdd9eda0808
mesh: Zero out config node struct before initializing

This memsets all the fields of mesh_db_node to zero prior to intializing
some fields in mesh_config_node struct and creating a brand new node
configuration. Just a precaution against having uninitialized items.

Change-Id: I92528e58d399db611e84fdacf6399281e4ffc54d
Signed-off-by: Abhay Agarwal <ay.agarwal@samsung.com>
mesh/node.c