Fix coredump in clang caused by missing array terminator element. 06/35306/1 accepted/tizen_3.0.2014.q4_common accepted/tizen_common accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/3.0.2014.q4/common/20150226.105901 accepted/tizen/base/20151223.052343 accepted/tizen/base/20160723.021737 accepted/tizen/common/20150216.084950 accepted/tizen/mobile/20150218.124509 accepted/tizen/tv/20150218.123038 accepted/tizen/wearable/20150218.124206 submit/tizen/20150212.055707 submit/tizen_3.0.2014.q4_common/20150226.000000 submit/tizen_base/20151223.111111 submit/tizen_base/20151223.111112 submit/tizen_base/20160723.021230 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
authorChristos Zoulas <christos@zoulas.com>
Wed, 7 May 2014 21:26:06 +0000 (21:26 +0000)
committerYury Usishchev <y.usishchev@samsung.com>
Wed, 11 Feb 2015 18:41:47 +0000 (21:41 +0300)
Change-Id: I531cbfd012a2a14c26e17b28189350341303c486
Signed-off-by: Yury Usishchev <y.usishchev@samsung.com>
src/readcdf.c

index 2367b8a..44695d9 100644 (file)
@@ -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 <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 *