Message ID | 20201217094601.1401930-1-tz.stoyanov@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 81e5eac1df8f479377be9000f2949109410bfc61 |
Headers | show |
Series | libtracefs: Change tracefs_tracers()to accept NULL pointer | expand |
diff --git a/src/tracefs-events.c b/src/tracefs-events.c index 8cdec8e..58fa153 100644 --- a/src/tracefs-events.c +++ b/src/tracefs-events.c @@ -406,6 +406,9 @@ char **tracefs_tracers(const char *tracing_dir) int len; int ret; + if (!tracing_dir) + tracing_dir = tracefs_get_tracing_dir(); + if (!tracing_dir) return NULL;