git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6260cc5)
Don't use address of array as boolean
2019年1月10日 16:59:40 +0000 (13:59 -0300)
2019年1月10日 16:59:40 +0000 (13:59 -0300)
Per buildfarm


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++)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /