From: compudj Date: Sat, 14 Aug 2004 19:11:20 +0000 (+0000) Subject: fix bug in current process X-Git-Tag: v0.12.20~2739 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;ds=sidebyside;h=0e9000a1e3f30faefd65533a792ccdc2255bbcab;hp=d2d199a6926d8d0b473b7b40b050c943623e56a1;p=lttv.git fix bug in current process git-svn-id: http://ltt.polymtl.ca/svn@750 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c index ef3e3177..d273167d 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/processlist.c @@ -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;