fix bug in current process
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 14 Aug 2004 19:10:17 +0000 (19:10 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 14 Aug 2004 19:10:17 +0000 (19:10 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@749 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c

index 9fc871d862d57d24308c0f54760811be9b24e715..ef3e3177c21f8ece73863d55c8889b0eee4e47a5 100644 (file)
@@ -416,9 +416,11 @@ static gboolean remove_hash_item(ProcessInfo *process_info,
 
   gtk_list_store_remove (process_list->list_store, &iter);
 
-  if(hashed_process_data == process_list->current_hash_data[process_info->cpu])
-    process_list->current_hash_data[process_info->cpu] = NULL;
-
+  if(process_list->current_hash_data != NULL) {
+    if(hashed_process_data ==
+                process_list->current_hash_data[process_info->cpu])
+      process_list->current_hash_data[process_info->cpu] = NULL;
+  }
   return TRUE; /* remove the element from the hash table */
 }
 
This page took 0.024406 seconds and 4 git commands to generate.