Message ID | 20190130104425.8813-2-tstoyanov@vmware.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e523b2b7d5a0ada0436b371f7807f647bdd45fbd |
Headers | show |
Series | Few patches, backported from Arnaldo's kernel repo | expand |
diff --git a/lib/traceevent/event-parse.c b/lib/traceevent/event-parse.c index 3f85b94..b506dc7 100644 --- a/lib/traceevent/event-parse.c +++ b/lib/traceevent/event-parse.c @@ -6829,8 +6829,10 @@ struct tep_handle *tep_alloc(void) { struct tep_handle *pevent = calloc(1, sizeof(*pevent)); - if (pevent) + if (pevent) { pevent->ref_count = 1; + pevent->host_bigendian = tep_host_bigendian(); + } return pevent; }