state.c: track softirq raises
[lttv.git] / ltt / branches / poly / lttv / lttv / tracecontext.c
index 95d58c369b219c72c2b951696ae63e74841482f0..f5b78b5cbfdd8d640fe6b91576b68d415c840010 100644 (file)
@@ -862,9 +862,6 @@ void lttv_process_trace_seek_time(LttvTraceContext *self, LttTime start)
   g_debug("test tree after seek_time");
   g_tree_foreach(pqueue, test_tree, NULL);
 #endif //DEBUG
-
-
-
 }
 
 
@@ -1041,7 +1038,8 @@ void lttv_trace_hook_remove_all(GArray **th)
   for(i=0; i<(*th)->len; i++) {
     g_ptr_array_free(g_array_index(*th, LttvTraceHook, i).fields, TRUE);
   }
-  *th = g_array_remove_range(*th, 0, (*th)->len);
+  if((*th)->len)
+    *th = g_array_remove_range(*th, 0, (*th)->len);
 }
 
 LttvTracesetContextPosition *lttv_traceset_context_position_new(
This page took 0.023651 seconds and 4 git commands to generate.