[sysprof] Fix use of uninitialized variable



commit 119b710ffc2d0e3c993702b666ba66a5e7aa5251
Author: Søren Sandmann Pedersen <sandmann daimi au dk>
Date:   Sat Apr 24 12:27:32 2010 -0400

    Fix use of uninitialized variable

 tracker.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/tracker.c b/tracker.c
index 6a10673..9117052 100644
--- a/tracker.c
+++ b/tracker.c
@@ -509,7 +509,6 @@ static void
 process_fork (state_t *state, fork_t *fork)
 {
     pid_t ppid = GET_PID (fork->header);
-    GPtrArray *maps;
 
     process_t *parent = g_hash_table_lookup (
 	state->processes_by_pid, GINT_TO_POINTER (ppid));
@@ -539,7 +538,7 @@ process_fork (state_t *state, fork_t *fork)
 	{
 	    map_t *map = copy_map (parent->maps->pdata[i]);
 	    
-	    g_ptr_array_add (maps, map);
+	    g_ptr_array_add (child->maps, map);
 	}
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]