From: Roland McGrath Date: Tue, 22 Jun 2010 19:59:54 +0000 (-0700) Subject: Nit in __libdw_relocatable. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ece49c20f7b21aea6a04055ccad09be8ae40443d;p=thirdparty%2Felfutils.git Nit in __libdw_relocatable. --- diff --git a/libdw/relocate.c b/libdw/relocate.c index 298042acb..1a27a71aa 100644 --- a/libdw/relocate.c +++ b/libdw/relocate.c @@ -552,7 +552,8 @@ __libdw_relocatable (Dwarf *dbg, int sec_idx, GElf_Sym *sym, const char **name, GElf_Sxword *addend, GElf_Sxword offset, const char **secname) { - struct dwarf_section_reloc *const r = dbg->relocate->sectionrel[sec_idx]; + struct dwarf_section_reloc *const r + = dbg->relocate != NULL ? dbg->relocate->sectionrel[sec_idx] : NULL; int symndx; int result = relocatable_datum (dbg, sec_idx, r, valp, width, &symndx, addend);