projects
/
postgresql-pgindent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31c018e
)
Remove unnecessary NULL test.
author
Robert Haas
<
[email protected]
>
Fri, 26 Jun 2015 18:45:32 +0000
(14:45 -0400)
committer
Robert Haas
<
[email protected]
>
Fri, 26 Jun 2015 18:46:48 +0000
(14:46 -0400)
Spotted by Coverity and reported by Michael Paquier. Per discussion,
we don't necessarily care about making Coverity happy in all such
instances, but we can go ahead and change them where it otherwise
seems to improve the code.
src/bin/pg_upgrade/controldata.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_upgrade/controldata.c
b/src/bin/pg_upgrade/controldata.c
index 142e623c0919851acde43401235b9a3ec6c296f7..6978ae991b2c7d467453671a826f89f8cf7e16b9 100644
(file)
--- a/
src/bin/pg_upgrade/controldata.c
+++ b/
src/bin/pg_upgrade/controldata.c
@@
-402,8
+402,7
@@
get_control_data(ClusterInfo *cluster, bool live_check)
}
}
- if (output)
- pclose(output);
+ pclose(output);
/*
* Restore environment variables