first fixes gcc 4.0
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 22 Sep 2005 18:37:42 +0000 (18:37 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 22 Sep 2005 18:37:42 +0000 (18:37 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1257 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/lttv/state.c
ltt/branches/poly/lttv/lttv/stats.c

index 52815dd922dfd4335c287f5e974c74934ad6e944..d5d540316f7dc901f8229ffd5ea1c05b700ac704 100644 (file)
@@ -1866,7 +1866,7 @@ void lttv_state_save_remove_event_hooks(LttvTracesetState *self)
     ts = (LttvTraceState *)self->parent.traces[i];
     nb_tracefile = ts->parent.tracefiles->len;
 
-    guint *event_count;
+    guint *event_count = NULL;
 
     for(j = 0 ; j < nb_tracefile ; j++) {
       tfs = 
@@ -1875,7 +1875,7 @@ void lttv_state_save_remove_event_hooks(LttvTracesetState *self)
       event_count = lttv_hooks_remove(tfs->parent.event,
                         state_save_event_hook);
     }
-    g_free(event_count);
+    if(event_count) g_free(event_count);
   }
 }
 
index abee8199396f6d2e5f9e8ca784e229cb6b8c8ad0..6416e3001b3e350cf60a2f48152917c6160227a2 100644 (file)
@@ -47,9 +47,7 @@ GQuark
   LTTV_STATS_USE_COUNT,
   LTTV_STATS,
   LTTV_STATS_TRACEFILES,
-  LTTV_STATS_SUMMED;
-
-static GQuark
+  LTTV_STATS_SUMMED,
   LTTV_STATS_BEFORE_HOOKS,
   LTTV_STATS_AFTER_HOOKS;
 
This page took 0.026254 seconds and 4 git commands to generate.