Skip to content

Commit 74fee85

Browse files
committed
Initialize type to a known invalid value so
the logging message is clearer when an unknown type is found in the main bin spec.
1 parent 1138415 commit 74fee85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5656,6 +5656,7 @@ bool ObjectFileMachO::GetCorefileMainBinaryInfo(addr_t &value,
56565656
// convert the "main bin spec" type into our
56575657
// ObjectFile::BinaryType enum
56585658
const char *typestr = "unrecognized type";
5659+
type = eBinaryTypeInvalid;
56595660
switch (binspec_type) {
56605661
case 0:
56615662
type = eBinaryTypeUnknown;

0 commit comments

Comments
 (0)