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

Lines changed: 1 addition & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy