From f28fbb947e3aa55fc40b09820f59ebff6f66f213 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. --- src/readcdf.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/readcdf.c b/src/readcdf.c index 4e6e5552..fc415218 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.41 2014/05/05 16:11:21 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.40.0