From bc9dc7c62ee88b466d9a78fb0351e1de87db4cbd Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Wed, 17 May 2017 00:27:54 +0100 Subject: [PATCH] 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. --- sbr/check_charset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.56.0