Test for !prev instead of !next.
authorSoeren Sandmann <sandmann@redhat.com>
Mon, 7 Nov 2005 03:53:20 +0000 (03:53 +0000)
committerSøren Sandmann Pedersen <ssp@src.gnome.org>
Mon, 7 Nov 2005 03:53:20 +0000 (03:53 +0000)
Sun Nov  6 23:03:49 2005  Soeren Sandmann  <sandmann@redhat.com>

        * profile.c (add_trace_to_tree): Test for !prev instead of !next.

ChangeLog
profile.c

index 9ba77dc..e7af2d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Nov  6 23:03:49 2005  Soeren Sandmann  <sandmann@redhat.com>
+
+       * profile.c (add_trace_to_tree): Test for !prev instead of !next.
+
 Sun Nov  6  Soeren Sandmann  <sandmann@redhat.com>
 
        * TODO: updates
index d50afab..7beded2 100644 (file)
--- a/profile.c
+++ b/profile.c
@@ -303,7 +303,7 @@ add_trace_to_tree (GList *trace, gint size, gpointer data)
            ++match->marked_non_recursive;
        }
        
-       if (!list->next)
+       if (!list->prev)
            match->self += size;
        
        tree = &(match->children);