]> diplodocus.org Git - nmh/commitdiff
sbr/check_charset.c: Fix warning on unspecified struct initialisers.
authorRalph Corderoy <ralph@inputplus.co.uk>
Tue, 16 May 2017 23:27:54 +0000 (00:27 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 16 May 2017 23:27:54 +0000 (00:27 +0100)
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

index ee0dcc28447a8532eb36dbdef290f57ea66cf874..71129fef4ecf76e73747911805a06ff89262a80c 100644 (file)
@@ -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)