mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
Fix possibly-uninitialized variable.
Thinko in 2f9661311
. Per buildfarm, as well as warning seen locally.
This commit is contained in:
parent
2f9661311b
commit
91f3bd732c
@ -1013,8 +1013,7 @@ pgss_ProcessUtility(PlannedStmt *pstmt, const char *queryString,
|
||||
INSTR_TIME_SET_CURRENT(duration);
|
||||
INSTR_TIME_SUBTRACT(duration, start);
|
||||
|
||||
if (qc)
|
||||
rows = qc->commandTag == CMDTAG_COPY ? qc->nprocessed : 0;
|
||||
rows = (qc && qc->commandTag == CMDTAG_COPY) ? qc->nprocessed : 0;
|
||||
|
||||
/* calc differences of buffer counters. */
|
||||
bufusage.shared_blks_hit =
|
||||
|
Loading…
Reference in New Issue
Block a user