GCC complains about potentially accessing the array beyond
the end. Ensure that we include a NULL at the end.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
{
struct thread_data *td = data;
const char * const policy_types[] =
{
struct thread_data *td = data;
const char * const policy_types[] =
- { "default", "prefer", "bind", "interleave", "local" };
+ { "default", "prefer", "bind", "interleave", "local", NULL };
int i;
char *nodelist = strchr(input, ':');
int i;
char *nodelist = strchr(input, ':');