git-svn-id: http://ltt.polymtl.ca/svn@177 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 14 Aug 2003 20:41:38 +0000 (20:41 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 14 Aug 2003 20:41:38 +0000 (20:41 +0000)
ltt/branches/poly/ltt/facility.c
ltt/branches/poly/ltt/type.c

index b1c26baa18daec226a46d2955e7a26ed71094ef0..3cd638d57f81cdc6ae359f0e00c42e440f556ce5 100644 (file)
@@ -74,6 +74,7 @@ void ltt_facility_open(LttTrace * t, char * pathname)
       generateChecksum(fac->name, &checksum, &fac->events);
 
       f = g_new(LttFacility,1);    
+      f->base_id = 0;
       generateFacility(f, fac, checksum);
 
       t->facility_number++;
index 1f21f2c91b3e0360e2c54afded6f90764ff6df03..710803de252b0a48aae2870e0477cb93d7168886 100644 (file)
@@ -241,7 +241,7 @@ LttType *ltt_type_member_type(LttType *t, unsigned i, char ** name)
 {
   if(t->type_class != LTT_STRUCT){*name == NULL; return NULL;}
   if(i >= t->element_number || i < 0 ){*name = NULL; return NULL;}
-  *name = t->element_name;
+  *name = t->element_type[i]->element_name;
   return t->element_type[i];
 }
 
This page took 0.030164 seconds and 4 git commands to generate.