Skip to content

Commit c6a9b79

Browse files
committed
Drop redundant NULL assignments after MemSet
graph_name and params are already zeroed by the MemSet, so the explicit NULL assignments are not needed.
1 parent ef8e19a commit c6a9b79

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/backend/parser/cypher_analyze.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,8 +963,6 @@ static Query *analyze_cypher(List *stmt, ParseState *parent_pstate,
963963
*/
964964
MemSet(&parent_cpstate, 0, sizeof(parent_cpstate));
965965
parent_cpstate.pstate = *parent_pstate;
966-
parent_cpstate.graph_name = NULL;
967-
parent_cpstate.params = NULL;
968966

969967
cpstate = make_cypher_parsestate(&parent_cpstate);
970968

0 commit comments

Comments
 (0)