Don't use address of array as boolean
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 10 Jan 2019 16:59:40 +0000 (13:59 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 10 Jan 2019 16:59:40 +0000 (13:59 -0300)
Per buildfarm

src/bin/pgbench/pgbench.c

index 7b5bc449fcde6140fde917c3cc881c4e47e44cda..49670768f5c446c37993b754d63526ce6ee5ab0d 100644 (file)
@@ -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++)