summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2008-10-17 00:50:28 -0400
committerWenji Huang <wenji.huang@oracle.com>2008-10-17 00:50:28 -0400
commit569f88af768ea1224ec536e592f1e16e45c0395d (patch)
tree753449aa8bf48a09d48c3d801f584aa011b887dd
parent927b945c9ab8060f9929ad72ac126b65c8ee49d3 (diff)
downloadsystemtap-steved-569f88af768ea1224ec536e592f1e16e45c0395d.tar.gz
systemtap-steved-569f88af768ea1224ec536e592f1e16e45c0395d.tar.xz
systemtap-steved-569f88af768ea1224ec536e592f1e16e45c0395d.zip
Fix compilation warning of uninitialized value in gcc 3.x.
-rw-r--r--runtime/ChangeLog4
-rw-r--r--runtime/task_finder_vma.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index f40ff6ee..8aea0411 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-17 Wenji Huang <wenji.huang@oracle.com>
+
+ * task_finder_vma.c (__stp_tf_vma_get_free_entry): Initialize entry.
+
2008-10-07 Frank Ch. Eigler <fche@elastic.org>
PR 4886.
diff --git a/runtime/task_finder_vma.c b/runtime/task_finder_vma.c
index 8c60175e..4dce4be8 100644
--- a/runtime/task_finder_vma.c
+++ b/runtime/task_finder_vma.c
@@ -60,7 +60,7 @@ __stp_tf_vma_get_free_entry(void)
{
struct hlist_head *head = &__stp_tf_vma_free_list[0];
struct hlist_node *node;
- struct __stp_tf_vma_entry *entry;
+ struct __stp_tf_vma_entry *entry = NULL;
if (hlist_empty(head))
return NULL;