pgbackrest.git / summary / log / commit / refs

commit    bcbac8a067e84a48e0849c5336f21044fec89df5
Author:   David Steele <david@pgmasters.net>
Date:     Mon Apr 11 21:54:18 2022 +0000

    Add static keywords.
    
    This is more efficient than pushing these variables onto the stack.


src/common/type/stringId.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/type/stringId.c b/src/common/type/stringId.c index a21b47c6f..217738ee5 100644 --- a/src/common/type/stringId.c +++ b/src/common/type/stringId.c @@ -263,7 +263,7 @@ strIdToZN(StringId strId, char *const buffer) case stringIdBit5: { // Map to convert encoding to characters - const char map[32] = "!abcdefghijklmnopqrstuvwxyz-256!"; + static const char map[32] = "!abcdefghijklmnopqrstuvwxyz-256!"; // Macro to decode all but the last character #define STR5ID_TO_ZN_IDX(idx) \ @@ -306,7 +306,7 @@ strIdToZN(StringId strId, char *const buffer) ASSERT(bit == stringIdBit6); // Map to convert encoding to characters - const char map[64] = "!abcdefghijklmnopqrstuvwxyz-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + static const char map[64] = "!abcdefghijklmnopqrstuvwxyz-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // Macro to decode all but the last character #define STR6ID_TO_ZN_IDX(idx) \ [parent: fa40bcdc5cf9]