Merge pull request #17531 from dundargoc/refactor/coverity/big-parameter-passed-by-value

This commit is contained in:
James McCoy 2022-02-26 19:41:22 -05:00 committed by GitHub
commit 84812bcc2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1592,7 +1592,7 @@ typedef struct {
/// string is a regex. /// string is a regex.
/// @param[in] is_invalid Whether currently processed token is not valid. /// @param[in] is_invalid Whether currently processed token is not valid.
static void parse_quoted_string(ParserState *const pstate, ExprASTNode *const node, static void parse_quoted_string(ParserState *const pstate, ExprASTNode *const node,
const LexExprToken token, const ExprASTStack ast_stack, const LexExprToken token, const ExprASTStack *ast_stack,
const bool is_invalid) const bool is_invalid)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_ALL
{ {
@ -2907,7 +2907,7 @@ viml_pexpr_parse_no_paren_closing_error: {}
? kExprNodeDoubleQuotedString ? kExprNodeDoubleQuotedString
: kExprNodeSingleQuotedString)); : kExprNodeSingleQuotedString));
*top_node_p = cur_node; *top_node_p = cur_node;
parse_quoted_string(pstate, cur_node, cur_token, ast_stack, is_invalid); parse_quoted_string(pstate, cur_node, cur_token, &ast_stack, is_invalid);
want_node = kENodeOperator; want_node = kENodeOperator;
break; break;
} }