aboutsummaryrefslogtreecommitdiff
path: root/src/backend/optimizer/path/joinpath.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-03-07 13:49:53 -0500
committerRobert Haas <rhaas@postgresql.org>2017-03-07 13:50:52 -0500
commit506f05423a7c60eef8ed8b5430d03be1fec138a2 (patch)
treee624562959c2d11e4aeb123edf8ef77bfae6c37d /src/backend/optimizer/path/joinpath.c
parent0d2b1f305dc78d536d80cfb4bb2ac4d7104453db (diff)
downloadpostgresql-506f05423a7c60eef8ed8b5430d03be1fec138a2.tar.gz
postgresql-506f05423a7c60eef8ed8b5430d03be1fec138a2.zip
Properly initialize variable.
Commit 3bc7dafa9bebbdaa1bbf0da0798d29a8bdaf6a8f forgot to do this. Noted while experimenting with valgrind.
Diffstat (limited to 'src/backend/optimizer/path/joinpath.c')
-rw-r--r--src/backend/optimizer/path/joinpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/optimizer/path/joinpath.c b/src/backend/optimizer/path/joinpath.c
index 11f02dd8da8..de7044de256 100644
--- a/src/backend/optimizer/path/joinpath.c
+++ b/src/backend/optimizer/path/joinpath.c
@@ -756,7 +756,7 @@ sort_inner_and_outer(PlannerInfo *root,
JoinType save_jointype = jointype;
Path *outer_path;
Path *inner_path;
- Path *cheapest_partial_outer;
+ Path *cheapest_partial_outer = NULL;
Path *cheapest_safe_inner = NULL;
List *all_pathkeys;
ListCell *l;