mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 14:56:18 +00:00
tests/gem_stress: prevent segfault in getopt parsing
Needs a terminal element in the long option array.
This commit is contained in:
parent
64f669f7a9
commit
0d7139af58
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user