diff options
Diffstat (limited to 'trace-cmd.c')
-rw-r--r-- | trace-cmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/trace-cmd.c b/trace-cmd.c index 5cfd97f..5407a6c 100644 --- a/trace-cmd.c +++ b/trace-cmd.c | |||
@@ -176,9 +176,7 @@ int main (int argc, char **argv) | |||
176 | 176 | ||
177 | ret = 0; | 177 | ret = 0; |
178 | pevent = tracecmd_local_events(tracing); | 178 | pevent = tracecmd_local_events(tracing); |
179 | if (!pevent) | 179 | if (!pevent || pevent->parsing_failures) |
180 | exit(EINVAL); | ||
181 | if (pevent->parsing_failures) | ||
182 | ret = EINVAL; | 180 | ret = EINVAL; |
183 | pevent_free(pevent); | 181 | pevent_free(pevent); |
184 | exit(ret); | 182 | exit(ret); |