From b450849bb0aad0ab5d00c84f5c1b69abc05f4cad Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 7 May 2014 21:26:06 +0000 Subject: [PATCH] Fix coredump in clang caused by missing array terminator element. Change-Id: I531cbfd012a2a14c26e17b28189350341303c486 Signed-off-by: Yury Usishchev --- src/readcdf.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/readcdf.c b/src/readcdf.c index 2367b8a..44695d9 100644 --- a/src/readcdf.c +++ b/src/readcdf.c @@ -26,7 +26,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: readcdf.c,v 1.40 2014/03/06 15:23:33 christos Exp $") +FILE_RCSID("@(#)$File: readcdf.c,v 1.42 2014/05/07 10:13:12 christos Exp $") #endif #include @@ -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 * -- 2.7.4