Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit91f3bd7

Browse files
committed
Fix possibly-uninitialized variable.
Thinko in2f96613. Per buildfarm, as well as warning seen locally.
1 parent2f96613 commit91f3bd7

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)

[8]ページ先頭

©2009-2025 Movatter.jp