state.c hooks almost there
[lttv.git] / ltt / branches / poly / lttv / lttv / tracecontext.c
index 39ee2950b66c443350c6dafb23c7e5e309c543d6..2c8a33855f0d6427827c567a89a9b1ad23949524 100644 (file)
@@ -998,7 +998,7 @@ int lttv_trace_find_hook(LttTrace *t, GQuark marker_name,
     tmpth.fields = g_ptr_array_new();
 
     /* for each field requested */
-    for(f = fields; *f != 0; f++) {
+    for(f = fields; f && *f != 0; f++) {
       found = 0;
       for_each_marker_field(marker_field, info) {
         if(marker_fieldfield->name == *f) {
@@ -1027,7 +1027,7 @@ skip_marker:
   return (init_array_size == (*trace_hooks)->len);
 }
 
-void lttv_trace_hook_destroy(GArray **th)
+void lttv_trace_hook_remove_all(GArray **th)
 {
   int i;
   for(i=0; i<th->len; i++) {
This page took 0.022488 seconds and 4 git commands to generate.