[PATCH] return on not finding name

Marcus Meissner marcus at jet.franken.de
Sun Feb 18 05:14:33 CST 2007


---
 dlls/dbghelp/dwarf.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index e15b08c..4f74b6a 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -1278,8 +1278,10 @@ static void dwarf2_parse_variable(dwarf2
     is_pmt = !block && di->abbrev->tag == DW_TAG_formal_parameter;
     param_type = dwarf2_lookup_type(subpgm->ctx, di);
         
-    if (!dwarf2_find_attribute(subpgm->ctx, di, DW_AT_name, &name))
-        name.u.string = NULL;
+    if (!dwarf2_find_attribute(subpgm->ctx, di, DW_AT_name, &name)) {
+	/* cannot do much without the name, the functions below won't like it. */
+        return;
+    }
     if (dwarf2_compute_location_attr(subpgm->ctx, di, DW_AT_location,
                                      &loc, &subpgm->frame))
     {
-- 
1.4.3.4



More information about the wine-patches mailing list