diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-03-15 12:13:04 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-03-15 12:13:04 -0400 |
commit | 7a2594c88f2ab65427bd7d2a4b4c0d91d5fd6e57 (patch) | |
tree | cbba111292b276de5852b0536b74b9fa607470f1 | |
parent | df843687135e7ffca2d6b70ca5453698e4067bf0 (diff) |
trace-cmd: Fix NULL pointer deference for use without plugins
The code that added --func-stack introduced a reference to
the variable "plugins" when it was never set to anything.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-record.c b/trace-record.c index 031e084..9d1218a 100644 --- a/trace-record.c +++ b/trace-record.c | |||
@@ -2070,7 +2070,7 @@ void trace_record (int argc, char **argv) | |||
2070 | } | 2070 | } |
2071 | } | 2071 | } |
2072 | 2072 | ||
2073 | if (strncmp(plugin, "function", 8) == 0 && | 2073 | if (plugin && strncmp(plugin, "function", 8) == 0 && |
2074 | func_stack && !filter_funcs) | 2074 | func_stack && !filter_funcs) |
2075 | die("Must supply function filtering with --func-stack\n"); | 2075 | die("Must supply function filtering with --func-stack\n"); |
2076 | 2076 | ||