Modified the passing a null pointer to string as a char* 25/149525/1 accepted/tizen_unified tizen accepted/tizen/unified/20170915.195000 submit/tizen/20170915.014915
authorSegwon <segwon.han@samsung.com>
Tue, 12 Sep 2017 08:55:05 +0000 (17:55 +0900)
committerSegwon Han <segwon.han@samsung.com>
Tue, 12 Sep 2017 10:53:39 +0000 (10:53 +0000)
Signed-off-by: Segwon <segwon.han@samsung.com>
Change-Id: Ie8545a2309968fa70376fbe32a48227380385124

daemon/Util.cpp

index 330eb0299b0c02cb444784f94eef5a4dca94ffdc..6eb3432591c7f30052f26ee6f98093ed4b3122ef 100755 (executable)
@@ -91,7 +91,7 @@ std::string conv::util::getBtMacAddress()
                char* macAddress;
                bt_adapter_enable();
                int ret = bt_adapter_get_address(&macAddress);
-               IF_FAIL_RETURN_TAG(ret == 0, NULL, _E, "bluetooth get mac address failed : %d", ret);
+               IF_FAIL_RETURN_TAG(ret == BT_ERROR_NONE, "", _E, "bluetooth get mac address failed : %d", ret);
                _D("bluetooth get mac address : %s", macAddress);
                __macAddress = macAddress;
                free(macAddress);