]> sourceware.org Git - systemtap.git/commitdiff
Only set sec in _stp_mod_sec_lookup when not NULL.
authorMark Wielaard <mjw@redhat.com>
Tue, 14 Apr 2009 17:54:38 +0000 (19:54 +0200)
committerMark Wielaard <mjw@redhat.com>
Tue, 14 Apr 2009 17:54:38 +0000 (19:54 +0200)
* runtime/sym.c (_stp_mod_sec_lookup): Only set sec when not NULL.

runtime/sym.c

index a2cdd0ff18eb6d914d72e11759144830cd21c059..fc9b2e80645452954bac95d9eea600563616239d 100644 (file)
@@ -150,7 +150,8 @@ static struct _stp_module *_stp_mod_sec_lookup(unsigned long addr,
        if (user != NULL)
          {
            m = (struct _stp_module *)user;
-           *sec = &m->sections[0]; // XXX check actual section and relocate
+           if (sec)
+             *sec = &m->sections[0]; // XXX check actual section and relocate
            dbug_sym(1, "found section %s in module %s at 0x%lx\n",
                     m->sections[0].name, m->name, vm_start);
            if (strcmp(".dynamic", m->sections[0].name) == 0)
This page took 0.028526 seconds and 5 git commands to generate.