summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-05-20 23:59:26 +0200
committerMark Wielaard <mjw@redhat.com>2009-05-21 00:05:22 +0200
commit4acb6884cdfa8205a60b203aa9e48ab79efd9ea2 (patch)
tree03a198c5998a758f674cae083a683af79e4f547d
parent29e2616aeeb82605a6efe1dbc574b499781eafbe (diff)
downloadsystemtap-steved-4acb6884cdfa8205a60b203aa9e48ab79efd9ea2.tar.gz
systemtap-steved-4acb6884cdfa8205a60b203aa9e48ab79efd9ea2.tar.xz
systemtap-steved-4acb6884cdfa8205a60b203aa9e48ab79efd9ea2.zip
Fix gcc warning about Dwarf_Addr initialization.
* translate.cxx (dump_unwindsyms): Initialize eh_frame to 0, not NULL.
-rw-r--r--translate.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx
index 9f45f5d1..505c9fc6 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -4713,7 +4713,7 @@ dump_unwindsyms (Dwfl_Module *m,
size_t debug_len = 0;
void *eh_frame = NULL;
size_t eh_len = 0;
- Dwarf_Addr eh_addr = NULL;
+ Dwarf_Addr eh_addr = 0;
get_unwind_data (m, &debug_frame, &eh_frame, &debug_len, &eh_len, &eh_addr);
if (debug_frame != NULL && debug_len > 0)
{