From: Alvaro Herrera Date: Thu, 10 Jan 2019 16:59:40 +0000 (-0300) Subject: Don't use address of array as boolean X-Git-Tag: REL_12_BETA1~972 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dacadcd1f32873d930b3953d3055dc7cb9548e48;p=thirdparty%2Fpostgresql.git Don't use address of array as boolean Per buildfarm --- diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index 7b5bc449fcd..49670768f5c 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -4267,9 +4267,8 @@ free_command(Command *command) termPQExpBuffer(&command->lines); if (command->first_line) pg_free(command->first_line); - if (command->argv) - for (int i = 0; i < command->argc; i++) - pg_free(command->argv[i]); + for (int i = 0; i < command->argc; i++) + pg_free(command->argv[i]); if (command->varprefix) { for (int i = 0; i < command->varprefix_max; i++)