Fix possibly-uninitialized variable.

Thinko in 2f9661311.  Per buildfarm, as well as warning seen locally.
This commit is contained in:
Tom Lane 2020-03-02 18:41:50 -05:00
parent 2f9661311b
commit 91f3bd732c
1 changed files with 1 additions and 2 deletions

View File

@ -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 =