summaryrefslogtreecommitdiffstats
path: root/libdw
diff options
context:
space:
mode:
Diffstat (limited to 'libdw')
-rw-r--r--libdw/ChangeLog4
-rw-r--r--libdw/dwarf_peel_type.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 13beefc7..2e27ff96 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-15 Mark Wielaard <[email protected]>
+
+ * dwarf_peel_type.c (dwarf_peel_type): Don't reassign result pointer.
+
2015-09-09 Chih-Hung Hsieh <[email protected]>
* dwarf_macro_getsrcfiles.c (dwarf_macro_getsrcfiles): Remove
diff --git a/libdw/dwarf_peel_type.c b/libdw/dwarf_peel_type.c
index 9be838dd..7b29d35a 100644
--- a/libdw/dwarf_peel_type.c
+++ b/libdw/dwarf_peel_type.c
@@ -1,5 +1,5 @@
/* Peel type aliases and qualifier tags from a type DIE.
- Copyright (C) 2014 Red Hat, Inc.
+ Copyright (C) 2014, 2015 Red Hat, Inc.
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
@@ -60,8 +60,7 @@ dwarf_peel_type (die, result)
if (attr == NULL)
return 1;
- result = INTUSE (dwarf_formref_die) (attr, result);
- if (result == NULL)
+ if (INTUSE (dwarf_formref_die) (attr, result) == NULL)
return -1;
tag = INTUSE (dwarf_tag) (result);