diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-11-29 15:01:09 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-11-29 15:01:09 +0100 |
commit | 0d7139af5813f227f120bf13152c35dd08774e6b (patch) | |
tree | b17ca567cb515edcb7e608faf9767a6073b284a6 /tests/gem_stress.c | |
parent | 64f669f7a94d459437a4dd47142ef2bb9870c5e6 (diff) |
tests/gem_stress: prevent segfault in getopt parsing
Needs a terminal element in the long option array.
Diffstat (limited to 'tests/gem_stress.c')
-rw-r--r-- | tests/gem_stress.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_stress.c b/tests/gem_stress.c index be306c53..54597afe 100644 --- a/tests/gem_stress.c +++ b/tests/gem_stress.c @@ -650,6 +650,7 @@ static void parse_options(int argc, char **argv) {"tile-size", 1, 0, TILESZ}, #define CHCK_RENDER 0xdead0003 {"check-render-cpyfn", 0, 0, CHCK_RENDER}, + {NULL, 0, 0, 0}, }; options.scratch_buf_size = 256*4096; |