From: Christos Zoulas Date: Wed, 7 May 2014 21:26:06 +0000 (+0000) Subject: Fix coredump in clang caused by missing array terminator element. X-Git-Tag: accepted/tizen/3.0.2014.q4/common/20150226.105901^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F06%2F35306%2F1;p=platform%2Fupstream%2Ffile.git Fix coredump in clang caused by missing array terminator element. Change-Id: I531cbfd012a2a14c26e17b28189350341303c486 Signed-off-by: Yury Usishchev --- 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 *