aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel-shark.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel-shark.c b/kernel-shark.c
index 9dedf48..9820ac3 100644
--- a/kernel-shark.c
+++ b/kernel-shark.c
@@ -596,8 +596,11 @@ void kernel_shark(int argc, char **argv)
596 if (ret >= 0) 596 if (ret >= 0)
597 input_file = default_input_file; 597 input_file = default_input_file;
598 } 598 }
599 if (handle) 599
600 if (input_file)
600 handle = tracecmd_open(input_file); 601 handle = tracecmd_open(input_file);
602 else
603 handle = NULL;
601 604
602 info->handle = handle; 605 info->handle = handle;
603 606