Commit dacadcd1 authored by Alvaro Herrera's avatar Alvaro Herrera

Don't use address of array as boolean

Per buildfarm
parent 6260cc55
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment