Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 91f3bd7

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎contrib/pg_stat_statements/pg_stat_statements.c

Copy file name to clipboardExpand all lines: contrib/pg_stat_statements/pg_stat_statements.c
+1-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.