mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
Fix last remaining uninitialized memory warnings
gcc (version 13) fails to properly analyze the code due to the loop stop 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
This commit is contained in:
@@ -2239,7 +2239,7 @@ evalStandardFunc(CState *st,
|
||||
{
|
||||
/* evaluate all function arguments */
|
||||
int nargs = 0;
|
||||
PgBenchValue vargs[MAX_FARGS];
|
||||
PgBenchValue vargs[MAX_FARGS] = { 0 };
|
||||
PgBenchExprLink *l = args;
|
||||
bool has_null = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user