From 71ef8b7c47a4b2a9e75e7ae15234a51cf074eeb0 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 5 Oct 2005 09:24:44 +0200 Subject: [PATCH] [PATCH] Remember to terminate options structure If not an unknown option will segfault, woops. --- blkparse.c | 3 +++ blktrace.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/blkparse.c b/blkparse.c index 9d67dab..d81e278 100644 --- a/blkparse.c +++ b/blkparse.c @@ -173,6 +173,9 @@ static struct option l_opts[] = { .flag = NULL, .val = 'D' }, + { + .name = NULL, + } }; /* diff --git a/blktrace.c b/blktrace.c index b945e0e..c4f4bfe 100644 --- a/blktrace.c +++ b/blktrace.c @@ -112,6 +112,9 @@ static struct option l_opts[] = { .flag = NULL, .val = 'D' }, + { + .name = NULL, + } }; struct thread_information { -- 2.25.1