X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Fltt%2Ftype.c;h=be96a3c732c0f6333061ed3b057cea0a2b189036;hb=cbd41522fece37839f38aaf3372b8a11fac9b267;hp=710803de252b0a48aae2870e0477cb93d7168886;hpb=fe974fde3467cfd184c75d94222eed8c6af41052;p=lttv.git diff --git a/ltt/branches/poly/ltt/type.c b/ltt/branches/poly/ltt/type.c index 710803de..be96a3c7 100644 --- a/ltt/branches/poly/ltt/type.c +++ b/ltt/branches/poly/ltt/type.c @@ -1,6 +1,5 @@ #include -#include #include "parser.h" #include @@ -93,6 +92,7 @@ unsigned ltt_eventtype_id(LttEventType *et) LttType *ltt_eventtype_type(LttEventType *et) { + if(!et->root_field) return NULL; return et->root_field->field_type; } @@ -311,6 +311,7 @@ LttField *ltt_field_member(LttField *f, unsigned i) LttType *ltt_field_type(LttField *f) { + if(!f)return NULL; return f->field_type; }