]> granicus.if.org Git - file/commitdiff
Fix coredump in clang caused by missing array terminator element.
authorChristos Zoulas <christos@zoulas.com>
Wed, 7 May 2014 21:26:06 +0000 (21:26 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 7 May 2014 21:26:06 +0000 (21:26 +0000)
src/readcdf.c

index aea9cf1916df10b7890e53aad7a56e3c6f7cfc24..fc5e29a632ae17844a3b0b52bbab51fae4bf6d40 100644 (file)
@@ -26,7 +26,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: readcdf.c,v 1.42 2014/05/07 10:13:12 christos Exp $")
+FILE_RCSID("@(#)$File: readcdf.c,v 1.43 2014/05/07 21:26:06 christos Exp $")
 #endif
 
 #include <assert.h>
@@ -75,14 +75,20 @@ static const struct cv {
        const char *mime;
 } clsid2mime[] = {
        {
-               { 0x00000000000c1084LLU, 0x46000000000000c0LLU },
+               { 0x00000000000c1084LLU, 0x46000000000000c0LLU  },
                "x-msi",
-       }
+       },
+       {       { 0,                     0                      },
+               NULL,
+       },
 }, clsid2desc[] = {
        {
-               { 0x00000000000c1084LLU, 0x46000000000000c0LLU },
+               { 0x00000000000c1084LLU, 0x46000000000000c0LLU  },
                "MSI Installer",
        },
+       {       { 0,                     0                      },
+               NULL,
+       },
 };
 
 private const char *