Re: [PATCH 2/2] perf, tools: Avoid segfault on alias parse error

From: Andi Kleen
Date: Thu Aug 17 2017 - 13:05:15 EST


> So it will _not_ set to null a member that it doesn't have, i.e. the
> minimal fix is to just have the hunks below, making sure that the error
> field is present in both structs. No need to set
> parse_event_terms->error to anything, it will be set to null since other
> fields are set to something.

Right but I want to see the error too. That is why I added a real
error handler.

-Andi