We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5674c62 + 7e4a6fb commit 1595ebcCopy full SHA for 1595ebc
1 file changed
unotify/stats.cc
@@ -170,7 +170,10 @@ void printStats(nsj_t* nsj) {
170
}
171
172
std::string text_report;
173
- google::protobuf::TextFormat::PrintToString(report_pb, &text_report);
+ if (!google::protobuf::TextFormat::PrintToString(report_pb, &text_report)) {
174
+ LOG_W("Failed to format unotify report");
175
+ return;
176
+ }
177
178
LOG_I("unotify report:\n%s", text_report.c_str());
179
0 commit comments