From: Mark Wielaard Date: Wed, 20 May 2009 21:59:26 +0000 (+0200) Subject: Fix gcc warning about Dwarf_Addr initialization. X-Git-Tag: release-0.9.8~59^2 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=4acb6884cdfa8205a60b203aa9e48ab79efd9ea2;p=systemtap.git Fix gcc warning about Dwarf_Addr initialization. * translate.cxx (dump_unwindsyms): Initialize eh_frame to 0, not NULL. --- diff --git a/translate.cxx b/translate.cxx index 9f45f5d1c..505c9fc65 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) {