aboutsummaryrefslogtreecommitdiffstats
path: root/kernel-shark.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel-shark.c')
-rw-r--r--kernel-shark.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel-shark.c b/kernel-shark.c
index 86ea2fc..1f1d459 100644
--- a/kernel-shark.c
+++ b/kernel-shark.c
@@ -676,6 +676,12 @@ void kernel_shark(int argc, char **argv)
676 } 676 }
677 } 677 }
678 678
679 if ((argc - optind) >= 1) {
680 if (input_file)
681 usage(basename(argv[0]));
682 input_file = argv[optind];
683 }
684
679 info = g_new0(typeof(*info), 1); 685 info = g_new0(typeof(*info), 1);
680 if (!info) 686 if (!info)
681 die("Unable to allocate info"); 687 die("Unable to allocate info");