[Fix build warnings] Missing initializer of 'network_tech_state_info_s' 32/258832/1
authorNishant Chaprana <n.chaprana@samsung.com>
Wed, 26 May 2021 09:02:29 +0000 (14:32 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Wed, 26 May 2021 09:02:29 +0000 (14:32 +0530)
Change-Id: I7c60ba833c763227edb34737775b43e76d820848
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
src/network_dbus.c
src/network_internal.c

index 99bdf5d..140753f 100755 (executable)
@@ -1085,7 +1085,7 @@ int _net_dbus_get_tech_status(network_info_s *network_info,
        __NETWORK_FUNC_ENTER__;
 
        net_err_e Error = NET_ERR_NONE;
-       network_tech_state_info_s tech_state = {{0,},};
+       network_tech_state_info_s tech_state = {{0,}, 0, 0, 0, 0, 0, 0};
 
        g_strlcpy(tech_state.technology, "wifi", NET_TECH_LENGTH_MAX);
 
index 822bc99..b801b12 100755 (executable)
@@ -353,7 +353,7 @@ net_err_e _net_get_wifi_state(network_info_s *network_info)
        __NETWORK_FUNC_ENTER__;
 
        net_err_e Error = NET_ERR_NONE;
-       network_tech_state_info_s tech_state = { { 0, }, };
+       network_tech_state_info_s tech_state = { { 0, }, 0, 0, 0, 0, 0, 0};
 
        g_strlcpy(tech_state.technology, "wifi", NET_TECH_LENGTH_MAX);
        Error = _net_dbus_get_technology_state(network_info, &tech_state);