]> sourceware.org Git - systemtap.git/commitdiff
Fix gcc warning about Dwarf_Addr initialization.
authorMark Wielaard <mjw@redhat.com>
Wed, 20 May 2009 21:59:26 +0000 (23:59 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 20 May 2009 22:05:22 +0000 (00:05 +0200)
* translate.cxx (dump_unwindsyms): Initialize eh_frame to 0, not NULL.

translate.cxx

index 9f45f5d1c2732a7981fa865f093d1095701dadd0..505c9fc6528b0a668da5a8231223542b478d8121 100644 (file)
@@ -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)
     {
This page took 0.04084 seconds and 5 git commands to generate.