From 6f05fec4b590cbd77800f48f8d7ae54e66c81d12 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 16 Jun 2018 16:35:44 -0500 Subject: [PATCH] pkg: give a correctly sized vtable to the parser --- libpkgconf/pkg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpkgconf/pkg.c b/libpkgconf/pkg.c index f01d32c..0c3a692 100644 --- a/libpkgconf/pkg.c +++ b/libpkgconf/pkg.c @@ -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 };