summaryrefslogtreecommitdiffstats
path: root/runtime/sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/sym.c')
-rw-r--r--runtime/sym.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/runtime/sym.c b/runtime/sym.c
index 386005b2..35fb3cb0 100644
--- a/runtime/sym.c
+++ b/runtime/sym.c
@@ -309,9 +309,10 @@ static int _stp_module_check(void)
static void _stp_symbol_print(unsigned long address)
{
- const char *modname;
- const char *name;
- unsigned long offset, size;
+ const char *modname = 0;
+ const char *name = 0;
+ unsigned long offset = 0;
+ unsigned long size = 0;
name = _stp_kallsyms_lookup(address, &size, &offset, &modname, NULL, NULL);
@@ -334,9 +335,10 @@ static void _stp_symbol_print(unsigned long address)
static void _stp_usymbol_print(unsigned long address, struct task_struct *task)
{
- const char *modname;
- const char *name;
- unsigned long offset, size;
+ const char *modname = 0;
+ const char *name = 0;
+ unsigned long offset = 0;
+ unsigned long size = 0;
name = _stp_kallsyms_lookup(address, &size, &offset, &modname, NULL,
task);