]> sourceware.org Git - systemtap.git/commitdiff
Fixed uninitialized variable error on f12.
authorDavid Smith <dsmith@redhat.com>
Tue, 29 Jun 2010 20:49:36 +0000 (15:49 -0500)
committerDavid Smith <dsmith@redhat.com>
Tue, 29 Jun 2010 20:49:36 +0000 (15:49 -0500)
* runtime/unwind.c (adjustStartLoc): Initialize a variable to avoid an
  error on f12.

runtime/unwind.c

index 45fde7546005c65851b0ede9fc6570b0098da1f7..4fe6b348f31dbcdf29f4ed7f126f6727b7cb58d0 100644 (file)
@@ -538,7 +538,7 @@ adjustStartLoc (unsigned long startLoc, struct task_struct *tsk,
 
   /* User space dynamic library */
   if (strcmp (s->name, ".dynamic") == 0) {
-    unsigned long vm_addr;
+    unsigned long vm_addr = 0;
     if (stap_find_vma_map_info_user(tsk->group_leader, m,
                                    &vm_addr, NULL, NULL) == 0)
       return startLoc + vm_addr;
This page took 0.027722 seconds and 5 git commands to generate.