diff --git a/zetasql/parser/unparser.cc b/zetasql/parser/unparser.cc index 7069872bf..e06ecdb40 100644 --- a/zetasql/parser/unparser.cc +++ b/zetasql/parser/unparser.cc @@ -50,8 +50,8 @@ std::string Unparse(const ASTNode* node) { std::string UnparseWithComments(const ASTNode* node, std::deque>& parse_tokens) { - std::string unparsed_; - parser::Unparser unparser(&unparsed_); + std::string unparsed; + parser::Unparser unparser(&unparsed); // Print comments by visitors and pop. node->Accept(&unparser, &parse_tokens); // Emit left comments in parse_tokens. @@ -59,7 +59,10 @@ std::string UnparseWithComments(const ASTNode* node, std::deque