tests/gem_stress: prevent segfault in getopt parsing

Needs a terminal element in the long option array.
This commit is contained in:
Daniel Vetter 2012-11-29 15:01:09 +01:00
parent 64f669f7a9
commit 0d7139af58

View File

@ -650,6 +650,7 @@ static void parse_options(int argc, char **argv)
{"tile-size", 1, 0, TILESZ}, {"tile-size", 1, 0, TILESZ},
#define CHCK_RENDER 0xdead0003 #define CHCK_RENDER 0xdead0003
{"check-render-cpyfn", 0, 0, CHCK_RENDER}, {"check-render-cpyfn", 0, 0, CHCK_RENDER},
{NULL, 0, 0, 0},
}; };
options.scratch_buf_size = 256*4096; options.scratch_buf_size = 256*4096;