]> sourceware.org Git - systemtap.git/commitdiff
PR6961: gcc warning tweak
authorFrank Ch. Eigler <fche@elastic.org>
Fri, 17 Jul 2009 22:52:04 +0000 (18:52 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Fri, 17 Jul 2009 22:52:04 +0000 (18:52 -0400)
* sym.c (_stp_usymbol_print): Ditto.

runtime/sym.c

index 5e5ed7b8c71a46fcc2f461c8df24a372fcca3a9b..35fb3cb039d1167bf124f7125fd664c8e242ebce 100644 (file)
@@ -335,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);
This page took 0.025452 seconds and 5 git commands to generate.