diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-02-03 12:12:52 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-02-03 12:12:52 -0500 |
commit | 8abd334d53527c279ec17b481323782405b383d1 (patch) | |
tree | 6b4e433a6f6b2430959c0f633a2478d5832f4795 /trace-local.h | |
parent | a5bdcdd938dfd5ae4d12fd9ecc2a5c5be0f051bf (diff) |
kernelshark: Fix initializing tracecmd handle
The handle variable was used in the if statement instead of the
input_file, where handle was not even initialized.
If an input file exists, then initialize the handle with opening
the tracecmd with the input file, otherwise initialize the handle
with NULL.
Reported-by: Darren Hart <dvhltc@us.ibm.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-local.h')
0 files changed, 0 insertions, 0 deletions