Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 91f3bd7

Browse files
committed
Fix possibly-uninitialized variable.
Thinko in 2f96613. Per buildfarm, as well as warning seen locally.
1 parent 2f96613 commit 91f3bd7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/pg_stat_statements/pg_stat_statements.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1013,8 +1013,7 @@ pgss_ProcessUtility(PlannedStmt *pstmt, const char *queryString,
10131013
INSTR_TIME_SET_CURRENT(duration);
10141014
INSTR_TIME_SUBTRACT(duration, start);
10151015

1016-
if (qc)
1017-
rows = qc->commandTag == CMDTAG_COPY ? qc->nprocessed : 0;
1016+
rows = (qc && qc->commandTag == CMDTAG_COPY) ? qc->nprocessed : 0;
10181017

10191018
/* calc differences of buffer counters. */
10201019
bufusage.shared_blks_hit =

0 commit comments

Comments
 (0)