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

Commit4a8fef0

Browse files
committed
Fix last remaining uninitialized memory warnings
gcc (version 13) fails to properly analyze the code due to the loopstop condition including `l != NULL`. Let's just help it out.Author: Tristan Partin <tristan@neon.tech>Discussion:https://www.postgresql.org/message-id/flat/CT6HJ3U8068R.3A8SJMV02D9BC@gonk
1 parenta72d613 commit4a8fef0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/bin/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2239,7 +2239,7 @@ evalStandardFunc(CState *st,
22392239
{
22402240
/* evaluate all function arguments */
22412241
intnargs=0;
2242-
PgBenchValuevargs[MAX_FARGS];
2242+
PgBenchValuevargs[MAX_FARGS]= {0 };
22432243
PgBenchExprLink*l=args;
22442244
boolhas_null= false;
22452245

‎src/bin/pgbench/pgbench.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ union YYSTYPE;
3333
*/
3434
typedefenum
3535
{
36-
PGBT_NO_VALUE,
36+
PGBT_NO_VALUE=0,
3737
PGBT_NULL,
3838
PGBT_INT,
3939
PGBT_DOUBLE,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp