Don't use address of array as boolean

Per buildfarm
This commit is contained in:
Alvaro Herrera 2019-01-10 13:59:40 -03:00
parent 6260cc550b
commit dacadcd1f3

View File

@ -4267,9 +4267,8 @@ free_command(Command *command)
termPQExpBuffer(&command->lines); termPQExpBuffer(&command->lines);
if (command->first_line) if (command->first_line)
pg_free(command->first_line); pg_free(command->first_line);
if (command->argv) for (int i = 0; i < command->argc; i++)
for (int i = 0; i < command->argc; i++) pg_free(command->argv[i]);
pg_free(command->argv[i]);
if (command->varprefix) if (command->varprefix)
{ {
for (int i = 0; i < command->varprefix_max; i++) for (int i = 0; i < command->varprefix_max; i++)