From: Ralph Corderoy Date: Tue, 16 May 2017 23:27:54 +0000 (+0100) Subject: sbr/check_charset.c: Fix warning on unspecified struct initialisers. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/bc9dc7c62ee88b466d9a78fb0351e1de87db4cbd?ds=inline;hp=ac1e36dc09f4092f4e9fa9ed66003bb585f790ed sbr/check_charset.c: Fix warning on unspecified struct initialisers. A different C compiler disliked `{NULL}' as the initialiser for a two-member struct so specify NULL for the other member too. --- diff --git a/sbr/check_charset.c b/sbr/check_charset.c index ee0dcc28..71129fef 100644 --- a/sbr/check_charset.c +++ b/sbr/check_charset.c @@ -128,7 +128,7 @@ static const char *norm_charmap(char *name) /* Names for ISO-8859-11. */ { "TIS-620", "ISO-8859-11" }, { "TIS620.2533", "ISO-8859-11" }, - { NULL } + { NULL, NULL } }; static struct { const char *substr; @@ -161,7 +161,7 @@ static const char *norm_charmap(char *name) { "CP1256", "WINDOWS-1256" }, { "CP1257", "WINDOWS-1257" }, { "CP1258", "WINDOWS-1258" }, - { NULL } + { NULL, NULL } }; if (!name)