fuzz code optimize

Signed-off-by: z00588131 <hw.zhangfeng@huawei.com>
This commit is contained in:
z00588131 2022-06-16 20:37:37 +08:00
parent 19a532693d
commit 95f359b9fb
2 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@
namespace OHOS {
namespace Wifi {
std::unique_ptr<WifiDevice> devicePtr = WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID);
bool AddDeviceConfigFuzzerTest(const uint8_t* data, size_t size)
{
std::unique_ptr<WifiDevice> devicePtr = WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID);
if (devicePtr == nullptr) {
return false;
}

View File

@ -18,9 +18,9 @@
namespace OHOS {
namespace Wifi {
std::unique_ptr<WifiDevice> devicePtr = WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID);
bool ConnectToDeviceFuzzerTest(const uint8_t* data, size_t size)
{
std::unique_ptr<WifiDevice> devicePtr = WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID);
if (devicePtr == nullptr) {
return false;
}