diff --git a/test/fuzztest/pttypesbreakpointparseid_fuzzer/pttypesbreakpointparseid_fuzzer.cpp b/test/fuzztest/pttypesbreakpointparseid_fuzzer/pttypesbreakpointparseid_fuzzer.cpp index 77fe9a7..956f000 100644 --- a/test/fuzztest/pttypesbreakpointparseid_fuzzer/pttypesbreakpointparseid_fuzzer.cpp +++ b/test/fuzztest/pttypesbreakpointparseid_fuzzer/pttypesbreakpointparseid_fuzzer.cpp @@ -30,7 +30,10 @@ namespace OHOS { if (size <= 0) { return; } - BreakpointDetails details = { .line_ = size, .column_ = size, .url_ = std::string((const char*)data, size)}; + BreakpointDetails details; + details.line_ = size; + details.column_ = size; + details.url_ = std::string((const char*)data, size); BreakpointId id = BreakpointDetails::ToString(details); BreakpointDetails::ParseBreakpointId(id, &details); JSNApi::DestroyJSVM(vm); diff --git a/test/fuzztest/pttypesbreakpointtostring_fuzzer/pttypesbreakpointtostring_fuzzer.cpp b/test/fuzztest/pttypesbreakpointtostring_fuzzer/pttypesbreakpointtostring_fuzzer.cpp index 4283e2e..c77bbd5 100644 --- a/test/fuzztest/pttypesbreakpointtostring_fuzzer/pttypesbreakpointtostring_fuzzer.cpp +++ b/test/fuzztest/pttypesbreakpointtostring_fuzzer/pttypesbreakpointtostring_fuzzer.cpp @@ -30,7 +30,10 @@ namespace OHOS { if (size <= 0) { return; } - BreakpointDetails details = { .line_ = size, .column_ = size, .url_ = std::string((const char*)data, size)}; + BreakpointDetails details; + details.line_ = size; + details.column_ = size; + details.url_ = std::string((const char*)data, size); BreakpointId id = BreakpointDetails::ToString(details); JSNApi::DestroyJSVM(vm); }