pkg: give a correctly sized vtable to the parser

feature/tap-sh
William Pitcock 2018-06-16 16:35:44 -05:00
parent 8f6e071d58
commit 6f05fec4b5
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ static const pkgconf_pkg_validity_check_t pkgconf_pkg_validations[] = {
{"Version", offsetof(pkgconf_pkg_t, version)},
};
static const pkgconf_parser_operand_func_t pkg_parser_funcs[] = {
static const pkgconf_parser_operand_func_t pkg_parser_funcs[256] = {
[':'] = (pkgconf_parser_operand_func_t) pkgconf_pkg_parser_keyword_set,
['='] = (pkgconf_parser_operand_func_t) pkgconf_pkg_parser_value_set
};