Skip to content

Commit b9ac31a

Browse files
committed
fix
1 parent d57cc3e commit b9ac31a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sarifreport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ std::string SarifReport::serialize(std::string productName) const
190190
// From SARIF specification (https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/sarif-v2.1.0-errata01-os-complete.html#_Toc141790730):
191191
// Although the order in which properties appear in a JSON object value is not semantically significant, the version property SHOULD appear first.
192192

193-
return "{\n \"version\": \"" + sarifVersion + "\"," + picojson::value(doc).serialize(true).substr(1);
193+
return "{\n \"version\": \"" + std::string(sarifVersion) + "\"," + picojson::value(doc).serialize(true).substr(1);
194194
}
195195

196196
std::string SarifReport::sarifSeverity(const ErrorMessage& errmsg)

0 commit comments

Comments
 (0)