Skip to content

Commit

Permalink
src: remove redundant string initialization
Browse files Browse the repository at this point in the history
PR-URL: #27152
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
gengjiawen authored and refack committed Apr 11, 2019
1 parent 845a621 commit ee7daf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_report_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ std::string EscapeJsonChars(const std::string& str) {
"\\u001a", "\\u001b", "\\u001c", "\\u001d", "\\u001e", "\\u001f"
};

std::string ret = "";
std::string ret;
size_t last_pos = 0;
size_t pos = 0;
for (; pos < str.size(); ++pos) {
Expand Down

0 comments on commit ee7daf7

Please sign in to comment.