logo

utils-std

Collection of commonly available Unix tools
commit: 3ee4f0b9884c59fd1d0d33d68d50abd223ce0c06
parent 01eab8db9e50820c213f20fc146561c227b89077
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 25 Apr 2024 05:19:43 +0200

lib/tr_str.c: Explicitly initialize classes[].set to NULL

Diffstat:

Mlib/tr_str.c24++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/lib/tr_str.c b/lib/tr_str.c @@ -150,18 +150,18 @@ typedef struct static CLASS classes[] = { /* clang-format off */ - { "alnum", isalnum, }, - { "alpha", isalpha, }, - { "blank", isblank, }, - { "cntrl", iscntrl, }, - { "digit", isdigit, }, - { "graph", isgraph, }, - { "lower", islower, }, - { "print", isprint, }, - { "punct", ispunct, }, - { "space", isspace, }, - { "upper", isupper, }, - { "xdigit", isxdigit, }, + { "alnum", isalnum, NULL, }, + { "alpha", isalpha, NULL, }, + { "blank", isblank, NULL, }, + { "cntrl", iscntrl, NULL, }, + { "digit", isdigit, NULL, }, + { "graph", isgraph, NULL, }, + { "lower", islower, NULL, }, + { "print", isprint, NULL, }, + { "punct", ispunct, NULL, }, + { "space", isspace, NULL, }, + { "upper", isupper, NULL, }, + { "xdigit", isxdigit, NULL, }, /* clang-format on */ };