Skip to content

Commit b07bc61

Browse files
author
Bryon Gloden, CISSP®
authored
uninitialized variable: savedSize
[stdlib/public/runtime/Metadata.cpp:2560]: (error) Uninitialized variable: savedSize
1 parent fb2c0b2 commit b07bc61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2553,7 +2553,7 @@ swift::swift_getForeignTypeMetadata(ForeignTypeMetadata *nonUnique) {
25532553
// saved iterator if it's still valid. This should only be called
25542554
// while the lock is held.
25552555
decltype(foreignTypes.Types.begin()) savedIterator;
2556-
size_t savedSize;
2556+
size_t savedSize = 0;
25572557
auto getCurrentEntry = [&]() -> const ForeignTypeMetadata *& {
25582558
// The iterator may have been invalidated if the size of the map
25592559
// has changed since the last lookup.

0 commit comments

Comments
 (0)