From 0d7139af5813f227f120bf13152c35dd08774e6b Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 29 Nov 2012 15:01:09 +0100 Subject: [PATCH] tests/gem_stress: prevent segfault in getopt parsing Needs a terminal element in the long option array. --- tests/gem_stress.c | 1 + 1 file changed, 1 insertion(+) 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;