Reserve full function array to make the GCC14 static code analyzer happy

Only happens with LTO, -fanalyzer, and -fsanitize=address,leak
wilder
Benny Baumann 2 years ago
parent 51ead9d8b6
commit 9cc1c5ea15
  1. 2
      FunctionBar.c

@ -30,7 +30,7 @@ static const int FunctionBar_EnterEscEvents[] = {13, 27};
static int currentLen = 0;
FunctionBar* FunctionBar_newEnterEsc(const char* enter, const char* esc) {
const char* functions[] = {enter, esc, NULL};
const char* functions[16] = {enter, esc, NULL};
return FunctionBar_new(functions, FunctionBar_EnterEscKeys, FunctionBar_EnterEscEvents);
}

Loading…
Cancel
Save