]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: test-auth-cache - Fix auth_request_var_expand_static_tab[]
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 15 Mar 2021 10:53:19 +0000 (12:53 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 18 Mar 2021 12:56:57 +0000 (12:56 +0000)
Its size is explicitly set in .h file, so it should be in .c file as well.

src/auth/test-auth-cache.c

index 7e10d8397336d2863977e837befb7c10a90769ee..ea71b1baff338657a2ee0abb1104ad674c3837c6 100644 (file)
@@ -6,7 +6,8 @@
 #include "auth-cache.h"
 #include "test-common.h"
 
-const struct var_expand_table auth_request_var_expand_static_tab[] = {
+const struct var_expand_table
+auth_request_var_expand_static_tab[AUTH_REQUEST_VAR_TAB_COUNT + 1] = {
        /* these 3 must be in this order */
        { 'u', NULL, "user" },
        { 'n', NULL, "username" },