From 7485bad77b488a9acfb43717612a1a5e2a51c0e3 Mon Sep 17 00:00:00 2001 From: Dmitry Yemanov Date: Thu, 10 Feb 2022 09:43:41 +0300 Subject: [PATCH] Ensure the variables are initialized before usage (even if they're only printed) --- src/jrd/optimizer/InnerJoin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jrd/optimizer/InnerJoin.cpp b/src/jrd/optimizer/InnerJoin.cpp index 97fb72c13d..97ed2d6d76 100644 --- a/src/jrd/optimizer/InnerJoin.cpp +++ b/src/jrd/optimizer/InnerJoin.cpp @@ -289,7 +289,7 @@ void InnerJoin::findBestOrder(unsigned position, streamFlags.add(innerStream->used); // Compute delta and total estimate cost to fetch this stream - double position_cost, position_cardinality, new_cost = 0, new_cardinality = 0; + double position_cost = 0, position_cardinality = 0, new_cost = 0, new_cardinality = 0; if (!plan) {