[PATCH] Remember to terminate options structure
authorJens Axboe <axboe@suse.de>
Wed, 5 Oct 2005 07:24:44 +0000 (09:24 +0200)
committerJens Axboe <axboe@suse.de>
Wed, 5 Oct 2005 07:24:44 +0000 (09:24 +0200)
If not an unknown option will segfault, woops.

blkparse.c
blktrace.c

index 9d67dab45a998e3a2ff1d59a544a14cf70072e3a..d81e2786c15677c1fd27b6a9b7e648a25e145385 100644 (file)
@@ -173,6 +173,9 @@ static struct option l_opts[] = {
                .flag = NULL,
                .val = 'D'
        },
+       {
+               .name = NULL,
+       }
 };
 
 /*
index b945e0e2839586d0963fbb807a6d869c44ead0c9..c4f4bfe8580350c32b51f647d12d320ca0b0e5b5 100644 (file)
@@ -112,6 +112,9 @@ static struct option l_opts[] = {
                .flag = NULL,
                .val = 'D'
        },
+       {
+               .name = NULL,
+       }
 };
 
 struct thread_information {