diff options
author | Robert Haas <rhaas@postgresql.org> | 2010-11-14 21:03:48 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2010-11-14 21:03:48 -0500 |
commit | 5aa446c961a6fdf15ff9c398751efd6ecff0c64a (patch) | |
tree | ac22ab29014d718cb234f2edc334c7803b3593a7 /contrib | |
parent | 3892a2d8619ee5623fc3ebee775538fdea1f529e (diff) | |
download | postgresql-5aa446c961a6fdf15ff9c398751efd6ecff0c64a.tar.gz postgresql-5aa446c961a6fdf15ff9c398751efd6ecff0c64a.zip |
Cleanup various comparisons with the constant "true".
Itagaki Takahiro, with slight modifications.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/pg_upgrade/pg_upgrade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/pg_upgrade.c b/contrib/pg_upgrade/pg_upgrade.c index 25d732b247d..3f09f793d24 100644 --- a/contrib/pg_upgrade/pg_upgrade.c +++ b/contrib/pg_upgrade/pg_upgrade.c @@ -254,7 +254,7 @@ copy_clog_xlog_xid(void) snprintf(old_clog_path, sizeof(old_clog_path), "%s/pg_clog", old_cluster.pgdata); snprintf(new_clog_path, sizeof(new_clog_path), "%s/pg_clog", new_cluster.pgdata); - if (rmtree(new_clog_path, true) != true) + if (!rmtree(new_clog_path, true)) pg_log(PG_FATAL, "Unable to delete directory %s\n", new_clog_path); check_ok(); |