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

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

index ef3e3177c21f8ece73863d55c8889b0eee4e47a5..d273167dd11d8b29aaff4fb34bb5e7a109b4f0ed 100644 (file)
@@ -578,10 +578,11 @@ int processlist_remove( ProcessList *process_list,
     g_hash_table_remove(process_list->process_hash,
         &process_info);
 
-    if(hashed_process_data == process_list->current_hash_data[cpu]) {
-      process_list->current_hash_data[cpu] = NULL;
+    if(process_list->current_hash_data != NULL) {
+      if(hashed_process_data == process_list->current_hash_data[cpu]) {
+        process_list->current_hash_data[cpu] = NULL;
+      }
     }
-
     process_list->number_of_process--;
 
     return 0; 
This page took 0.023164 seconds and 4 git commands to generate.