projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6260cc5
)
Don't use address of array as boolean
author
Alvaro Herrera
<alvherre@alvh.no-ip.org>
Thu, 10 Jan 2019 16:59:40 +0000
(13:59 -0300)
committer
Alvaro Herrera
<alvherre@alvh.no-ip.org>
Thu, 10 Jan 2019 16:59:40 +0000
(13:59 -0300)
Per buildfarm
src/bin/pgbench/pgbench.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pgbench/pgbench.c
b/src/bin/pgbench/pgbench.c
index 7b5bc449fcde6140fde917c3cc881c4e47e44cda..49670768f5c446c37993b754d63526ce6ee5ab0d 100644
(file)
--- 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++)