diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-03-19 14:51:33 +0100 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-03-19 14:51:33 +0100 |
commit | bfd5b4a50e6797da88a11eb6a52c185d2826a0d1 (patch) | |
tree | 7dadf158d88a35b9b4180b3a1685e87b6a4004a4 /runtime/sym.c | |
parent | 1882152af71f8339c91751ee17c97f1c4d18660a (diff) | |
download | systemtap-steved-bfd5b4a50e6797da88a11eb6a52c185d2826a0d1.tar.gz systemtap-steved-bfd5b4a50e6797da88a11eb6a52c185d2826a0d1.tar.xz systemtap-steved-bfd5b4a50e6797da88a11eb6a52c185d2826a0d1.zip |
Initialize user and vm_start before use.
* runtime/sym.c (_stp_mod_sec_lookup): Initialize user and vm_start.
Diffstat (limited to 'runtime/sym.c')
-rw-r--r-- | runtime/sym.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/sym.c b/runtime/sym.c index 1fe3f818..ed108f08 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -79,16 +79,15 @@ static struct _stp_module *_stp_mod_sec_lookup(unsigned long addr, struct task_struct *task, struct _stp_section **sec) { - void *user; + void *user = NULL; struct _stp_module *m = NULL; unsigned midx = 0; unsigned long closest_section_offset = ~0; // Try vma matching first if task given. - unsigned long vm_start; if (task) { - + unsigned long vm_start = 0; if (stap_find_vma_map_info(task, addr, &vm_start, NULL, NULL, &user) == 0) |