summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_begin.c
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2008-12-15 15:27:01 +0100
committerPetr Machata <[email protected]>2008-12-15 15:27:01 +0100
commitd62eda6e2cd2862fadad971a1ce14e7c4075f5d6 (patch)
tree2cebc98c9d54489f538fb56c795bba428f941a42 /libdw/dwarf_begin.c
parent468fe4d81a3e92157f4c0446675487dc230b2ec6 (diff)
Dump com.redhat.elfutils.pmachata.threads from monotone.upstream/pmachata/threads
Diffstat (limited to 'libdw/dwarf_begin.c')
-rw-r--r--libdw/dwarf_begin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdw/dwarf_begin.c b/libdw/dwarf_begin.c
index 69935a40..9f38ea7e 100644
--- a/libdw/dwarf_begin.c
+++ b/libdw/dwarf_begin.c
@@ -117,5 +117,8 @@ dwarf_begin (fd, cmd)
result->free_elf = true;
}
+ if (result != NULL)
+ rwlock_init (result->lock);
+
return result;
}