Modified the passing a null pointer to string as a char* 63/149463/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20170915.202524 submit/tizen_4.0/20170915.014855
authorSegwon <segwon.han@samsung.com>
Tue, 12 Sep 2017 08:55:05 +0000 (17:55 +0900)
committerSegwon <segwon.han@samsung.com>
Tue, 12 Sep 2017 08:58:02 +0000 (17:58 +0900)
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);