summaryrefslogtreecommitdiffstats
path: root/runtime/sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/sym.c')
-rw-r--r--runtime/sym.c5
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)