diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-01-10 13:59:40 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-01-10 13:59:40 -0300 |
commit | dacadcd1f32873d930b3953d3055dc7cb9548e48 (patch) | |
tree | f25061f0af5d45f8943b370e2d7798d386ec4f6c | |
parent | 6260cc550b0e60052168518a0338e440b67cf24e (diff) | |
download | postgresql-dacadcd1f32873d930b3953d3055dc7cb9548e48.tar.gz postgresql-dacadcd1f32873d930b3953d3055dc7cb9548e48.zip |
Don't use address of array as boolean
Per buildfarm
-rw-r--r-- | src/bin/pgbench/pgbench.c | 5 |
1 files changed, 2 insertions, 3 deletions
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++) |