From: Andreas Schneider Date: Wed, 12 Dec 2018 20:28:14 +0000 (+0100) Subject: lib:util: Use C99 initializer for weird_table in charset X-Git-Tag: ldb-1.6.1~346 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe78ebcbc0d75af05f802a267c0aef7e579f8067;p=thirdparty%2Fsamba.git lib:util: Use C99 initializer for weird_table in charset Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/lib/util/charset/weird.c b/lib/util/charset/weird.c index 7f766417dc4..79b07b022a1 100644 --- a/lib/util/charset/weird.c +++ b/lib/util/charset/weird.c @@ -28,9 +28,19 @@ static struct { const char *to; int len; } weird_table[] = { - {'q', "^q^", 3}, - {'Q', "^Q^", 3}, - {0, NULL} + { + .from = 'q', + .to = "^q^", + .len = 3, + }, + { + .from = 'Q', + .to = "^Q^", + .len = 3, + }, + { + .len = 0, + } }; size_t weird_pull(void *cd, const char **inbuf, size_t *inbytesleft,