From c9d3b1279857e546f34233520d679c979b4af8ac Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Thu, 10 Nov 2016 16:59:54 -0800 Subject: flash-db: Fix build warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: ‘tmp_16’ may be used uninitialized in this function Signed-off-by: Geoff Levand --- lib/flash-db.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/flash-db.c b/lib/flash-db.c index bddff06..57f20fe 100644 --- a/lib/flash-db.c +++ b/lib/flash-db.c @@ -566,8 +566,8 @@ int os_area_db_get(const struct os_area_db *db, const struct os_area_db_id *id, uint64_t *value) { int result; - uint32_t tmp_32; - uint16_t tmp_16; + uint32_t tmp_32 = 0; + uint16_t tmp_16 = 0; result = get_64(db, id, value); if (!result) -- cgit 1.2.3-korg