summaryrefslogtreecommitdiff
path: root/plugins/dwarf
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-11-27 23:14:47 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-11-27 23:14:47 (GMT)
commit9cc97d4fe2cd735d60a9ee2bb2f016a252b3a4d4 (patch)
tree1f7e7212793967dcd6fff47ce8a0bd6f2aef5fff /plugins/dwarf
parent425f8ce0e40592287431bd1d3d71e03f5bdcbdd5 (diff)
Fixed uninitialized value when looking for DWARF format.
Diffstat (limited to 'plugins/dwarf')
-rw-r--r--plugins/dwarf/format.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/dwarf/format.c b/plugins/dwarf/format.c
index 6bd47cd..3883606 100644
--- a/plugins/dwarf/format.c
+++ b/plugins/dwarf/format.c
@@ -83,6 +83,8 @@ GDbgFormat *check_dwarf_format(GExeFormat *format)
if (matched)
result = g_dwarf_format_new(format);
+ else
+ result = NULL;
return result;