summaryrefslogtreecommitdiffstats
path: root/src/readDwarf.cpp
diff options
context:
space:
mode:
authorRainer Schuetze <r.sagitario@gmx.de>2023-07-06 05:54:38 (GMT)
committerRainer Schuetze <r.sagitario@gmx.de>2023-07-06 05:54:38 (GMT)
commite3e9c455e5a3606ba3894901a79b74bdeb5a979a (patch)
tree8fbc9216fd0a20725e28598efea9db1fc97e0a84 /src/readDwarf.cpp
parente076c746a94edc5245d67d96123735cc8a274027 (diff)
downloadcv2pdb-master.zip
cv2pdb-master.tar.gz
cv2pdb-master.tar.bz2
fix initializing DWARF_InfoData.rangesHEADmaster
Diffstat (limited to 'src/readDwarf.cpp')
-rw-r--r--src/readDwarf.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/readDwarf.cpp b/src/readDwarf.cpp
index e6f187c..5d211f0 100644
--- a/src/readDwarf.cpp
+++ b/src/readDwarf.cpp
@@ -713,10 +713,9 @@ DWARF_InfoData* DIECursor::readNext(DWARF_InfoData* entry, bool stopAtNull)
establishLinks = true;
node = std::make_unique<DWARF_InfoData>();
entry = node.get();
- } else {
- // If an entry was provided, make sure we clear it.
- entry->clear();
}
+ // Even if an entry was provided, make sure we clear it.
+ entry->clear();
entry->img = img;