diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2023-09-25 16:07:28 -0600 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2023-09-25 16:07:28 -0600 |
| commit | 7755d5087ec5202d13a649cafd7d506266e14b76 (patch) | |
| tree | c3dbb038e7f7447ec710c999957f04a22321c2fc /ui/symbollist.h | |
| parent | 923b9a0d185e15fe6aa039cc41773fa9629346d0 (diff) | |
Fix uninitialized variable warning on index reset
Diffstat (limited to 'ui/symbollist.h')
| -rw-r--r-- | ui/symbollist.h | 8 |
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(); |
