summaryrefslogtreecommitdiff
path: root/ui/symbollist.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2023-09-25 16:07:28 -0600
committerRusty Wagner <rusty.wagner@gmail.com>2023-09-25 16:07:28 -0600
commit7755d5087ec5202d13a649cafd7d506266e14b76 (patch)
treec3dbb038e7f7447ec710c999957f04a22321c2fc /ui/symbollist.h
parent923b9a0d185e15fe6aa039cc41773fa9629346d0 (diff)
Fix uninitialized variable warning on index reset
Diffstat (limited to 'ui/symbollist.h')
-rw-r--r--ui/symbollist.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/symbollist.h b/ui/symbollist.h
index 5fa405e1..f0f5ffa8 100644
--- a/ui/symbollist.h
+++ b/ui/symbollist.h
@@ -66,7 +66,13 @@ class BINARYNINJAUIAPI SymbolListModel : public QAbstractItemModel, public Binar
BNSymbolType type;
BNSymbolBinding binding;
- NamedObject() {}
+ NamedObject()
+ {
+ address = 0;
+ type = FunctionSymbol;
+ binding = NoBinding;
+ }
+
NamedObject(SymbolRef s)
{
address = s->GetAddress();