From: Prasadam Prashath Kumar Date: Mon, 21 Sep 2020 18:43:34 +0000 (+0530) Subject: Fixed the NULL pointer dereferencing X-Git-Tag: submit/tizen/20200925.132900~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f700a821fcd5ec24ca11c08381e2931dbe028f5c;p=platform%2Fcore%2Fapi%2Fconnection.git Fixed the NULL pointer dereferencing segmentatin fault while gtest build qemu: uncaught target signal 11 (Segmentation fault) - core dumped Change-Id: Iee747c7ed11fa8474e155187314070391e30b077 Signed-off-by: Prasadam Prashath Kumar --- diff --git a/unittest/mock/connection-mock.c b/unittest/mock/connection-mock.c index 08f9bba..02fc8c7 100755 --- a/unittest/mock/connection-mock.c +++ b/unittest/mock/connection-mock.c @@ -286,6 +286,13 @@ API int net_get_wifi_state(void *handle, net_wifi_state_t *current_state) return NET_ERR_NONE; } +API int net_get_wifi_interface_list(void *handle, GSList **interface_list) +{ + *interface_list = g_slist_append(*interface_list, + g_strdup("dummy_ifname")); + return NET_ERR_NONE; +} + static void __net_init_profile_info(net_device_t profile_type, net_profile_info_t *ProfInfo) { int i = 0; @@ -931,4 +938,4 @@ API int net_mptcp_get_scheduler(void *handle, char **scheduler) { *scheduler = g_strdup("default"); return NET_ERR_NONE; -} \ No newline at end of file +}