projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98f8386
)
[PATCH] Remember to terminate options structure
author
Jens Axboe
<axboe@suse.de>
Wed, 5 Oct 2005 07:24:44 +0000
(09:24 +0200)
committer
Jens 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
patch
|
blob
|
blame
|
history
blktrace.c
patch
|
blob
|
blame
|
history
diff --git
a/blkparse.c
b/blkparse.c
index 9d67dab45a998e3a2ff1d59a544a14cf70072e3a..d81e2786c15677c1fd27b6a9b7e648a25e145385 100644
(file)
--- 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 b945e0e2839586d0963fbb807a6d869c44ead0c9..c4f4bfe8580350c32b51f647d12d320ca0b0e5b5 100644
(file)
--- a/
blktrace.c
+++ b/
blktrace.c
@@
-112,6
+112,9
@@
static struct option l_opts[] = {
.flag = NULL,
.val = 'D'
},
+ {
+ .name = NULL,
+ }
};
struct thread_information {