Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8a8c581

Browse files
committed
Remove unnecessary NULL test.
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.
1 parent 31c018e commit 8a8c581

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bin/pg_upgrade/controldata.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,7 @@ get_control_data(ClusterInfo *cluster, bool live_check)
402402
}
403403
}
404404

405-
if (output)
406-
pclose(output);
405+
pclose(output);
407406

408407
/*
409408
* Restore environment variables

0 commit comments

Comments
 (0)