From 9ae1975ec55448fcfa3ba2a511ef72278cf66c20 Mon Sep 17 00:00:00 2001 From: Nirav Shah Date: Tue, 11 Jun 2019 19:29:12 +0530 Subject: [PATCH] qcacmn: Fix "maybe-uninitialized" compilation error Initialize to fix "maybe-uninitialized" compilation error for specific compilers. Change-Id: Ibb049891ef5847d1beda94470a6e75ebba145ef4 CRs-Fixed: 2634848 --- qdf/src/qdf_types.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qdf/src/qdf_types.c b/qdf/src/qdf_types.c index 2abe831be287..f2c27b866dc8 100644 --- a/qdf/src/qdf_types.c +++ b/qdf/src/qdf_types.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -323,8 +323,8 @@ qdf_export_symbol(qdf_uint32_parse); QDF_STATUS qdf_int64_parse(const char *int_str, int64_t *out_int) { QDF_STATUS status; - bool negate; - uint64_t value; + bool negate = false; + uint64_t value = 0; int64_t signed_value; status = qdf_int_parse(int_str, &value, &negate); @@ -350,8 +350,8 @@ qdf_export_symbol(qdf_int64_parse); QDF_STATUS qdf_uint64_parse(const char *int_str, uint64_t *out_int) { QDF_STATUS status; - bool negate; - uint64_t value; + bool negate = false; + uint64_t value = 0; status = qdf_int_parse(int_str, &value, &negate); if (QDF_IS_STATUS_ERROR(status))