diff --git a/src/support/string.cpp b/src/support/string.cpp index bdb54f11f94..e823bdb6d0a 100644 --- a/src/support/string.cpp +++ b/src/support/string.cpp @@ -22,7 +22,7 @@ namespace wasm::String { Split::Split(const std::string& input, const NewLineOr& newLineOrDelim) { - auto first = input.find("\n", 0); + auto first = input.find('\n'); if (first != std::string::npos && first != input.length() - 1) { split(input, "\n"); } else {