infra: make KASAN happy

This commit is contained in:
Thomas Schoebel-Theuer 2019-02-19 07:02:49 +01:00
parent 0f32d2fd0a
commit ffb07986a0
1 changed files with 2 additions and 2 deletions

View File

@ -2277,8 +2277,8 @@ struct mars_brick *make_brick_all(
const char *new_path;
char *_new_path = NULL;
struct mars_brick *brick = NULL;
char *paths[prev_count];
struct mars_brick *prev[prev_count];
char *paths[prev_count + 1];
struct mars_brick *prev[prev_count + 1];
bool switch_state;
int i;
int status;