postgres.git / summary / log / commit / refs
commit dacadcd1f32873d930b3953d3055dc7cb9548e48
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: Thu Jan 10 16:59:40 2019 +0000
Don't use address of array as boolean
Per buildfarm
src/bin/pgbench/pgbench.c | 5 ++---
1 file 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++)
[parent: 6260cc550b0e]