Skip to content

Commit d0f21ea

Browse files
committed
explicitly null init pathSym and rootSym
1 parent 12b2fa2 commit d0f21ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Evaluate/variable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ struct has_GetFirstSymbol<T,
769769

770770
template <typename P, typename R>
771771
bool TestVariableIsPathFromRoot(const P &path, const R &root) {
772-
const SymbolRef *pathSym, *rootSym;
772+
const SymbolRef *pathSym{nullptr}, *rootSym{nullptr};
773773
if constexpr (has_union<P>::value) {
774774
pathSym = std::get_if<SymbolRef>(&path.u);
775775
}

0 commit comments

Comments
 (0)