Fix: Free die_name in bin_info_lookup_cu_function_name
[babeltrace.git] / lib / dwarf.c
index c7e2f44856c6a1fe910d5f018462529c1543556f..0b8bf9613ffe731706fe0bf2b19d514e320df047 100644 (file)
@@ -351,7 +351,7 @@ error:
 
 BT_HIDDEN
 int bt_dwarf_die_contains_addr(struct bt_dwarf_die *die, uint64_t addr,
-               int *contains)
+               bool *contains)
 {
        int ret;
 
@@ -360,7 +360,7 @@ int bt_dwarf_die_contains_addr(struct bt_dwarf_die *die, uint64_t addr,
                goto error;
        }
 
-       *contains = ret;
+       *contains = (ret == 1);
 
        return 0;
 
This page took 0.022617 seconds and 4 git commands to generate.