From 05d6f44b81aa0ec628048004718eaa9d71816b54 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 17 Jul 2013 16:15:31 -0600 Subject: [PATCH] Fix warning with newer gcc in str_numa_mpol_cb() GCC complains about potentially accessing the array beyond the end. Ensure that we include a NULL at the end. Signed-off-by: Jens Axboe --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.c b/options.c index 1ca48017..6462c67c 100644 --- a/options.c +++ b/options.c @@ -550,7 +550,7 @@ static int str_numa_mpol_cb(void *data, char *input) { 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, ':'); -- 2.25.1