diff options
author | Rainer Schuetze <r.sagitario@gmx.de> | 2023-07-06 05:54:38 (GMT) |
---|---|---|
committer | Rainer Schuetze <r.sagitario@gmx.de> | 2023-07-06 05:54:38 (GMT) |
commit | e3e9c455e5a3606ba3894901a79b74bdeb5a979a (patch) | |
tree | 8fbc9216fd0a20725e28598efea9db1fc97e0a84 /src/readDwarf.cpp | |
parent | e076c746a94edc5245d67d96123735cc8a274027 (diff) | |
download | cv2pdb-master.zip cv2pdb-master.tar.gz cv2pdb-master.tar.bz2 |
Diffstat (limited to 'src/readDwarf.cpp')
-rw-r--r-- | src/readDwarf.cpp | 5 |
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;
|