summaryrefslogtreecommitdiffstats
path: root/runtime/sym.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-07-17 18:04:24 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-07-17 18:04:57 -0400
commit99975394710f2069e28738de0c97c28d0c717d61 (patch)
treeba78a6e3f38e68390fa3fe35ee6afda172f983ea /runtime/sym.c
parenta9f9a4281f6dbc9e46580d49aa80fbd44aa1a2c6 (diff)
downloadsystemtap-steved-99975394710f2069e28738de0c97c28d0c717d61.tar.gz
systemtap-steved-99975394710f2069e28738de0c97c28d0c717d61.tar.xz
systemtap-steved-99975394710f2069e28738de0c97c28d0c717d61.zip
PR6961: gcc warning tweak
* sym.c (_stp_symbol_print): (Redundantly) initialize locals.
Diffstat (limited to 'runtime/sym.c')
-rw-r--r--runtime/sym.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/sym.c b/runtime/sym.c
index 386005b2..5e5ed7b8 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);