Fix warnings from static analyzer 44/80944/1 accepted/tizen/common/20160721.180623 accepted/tizen/common/20160805.130030 accepted/tizen/ivi/20160721.093522 accepted/tizen/ivi/20160809.011028 accepted/tizen/mobile/20160721.093203 accepted/tizen/mobile/20160809.010938 accepted/tizen/tv/20160721.092558 accepted/tizen/tv/20160809.010952 accepted/tizen/wearable/20160721.093313 accepted/tizen/wearable/20160809.011007 submit/tizen/20160721.064212 submit/tizen/20160805.044059
authorYu Jiung <jiung.yu@samsung.com>
Thu, 21 Jul 2016 04:33:08 +0000 (13:33 +0900)
committerYu Jiung <jiung.yu@samsung.com>
Thu, 21 Jul 2016 04:33:22 +0000 (13:33 +0900)
Change-Id: I36ee42d3cc470fa755e93a7b145117eebd34b52c
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
packaging/wifi-direct-manager.spec
plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c
src/wifi-direct-manager.c

index d847fd9..026a6cf 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          wifi-direct-manager
 Summary:       Wi-Fi Direct manger
-Version:       1.2.191
+Version:       1.2.192
 Release:       1
 Group:      Network & Connectivity/Wireless
 License:    Apache-2.0
index 99eaabd..6aa0a57 100755 (executable)
@@ -1642,7 +1642,8 @@ static void _ws_process_device_found_properties(GDBusConnection *connection,
        WDP_LOGD("Retrive Added path [%s]", peer_path);
 
        loc = strrchr(peer_path,'/');
-       __ws_mac_compact_to_normal(loc + 1, peer_dev);
+       if (loc != NULL)
+               __ws_mac_compact_to_normal(loc + 1, peer_dev);
        __ws_txt_to_mac(peer_dev, event.dev_addr);
        WDP_LOGD("peer mac [" MACSTR "]", MAC2STR(event.dev_addr));
 
index de28b6e..3bc894a 100755 (executable)
@@ -709,7 +709,7 @@ int wfd_manager_accept_connection(wfd_manager_s *manager, unsigned char *peer_ad
                return WIFI_DIRECT_ERROR_OPERATION_FAILED;
        }
 
-       if (!memcmp(session->peer->dev_addr, peer_addr ,MACADDR_LEN)) {
+       if (!memcmp(session->peer->dev_addr, peer_addrMACADDR_LEN)) {
                WDS_LOGE("Peer and ongoing session peer are different");
                return WIFI_DIRECT_ERROR_OPERATION_FAILED;
        }