From: tecodev Date: Sun, 18 Feb 2007 21:28:46 +0000 (+0000) Subject: * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays) X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a60484dba2ecb888187f141854e91932b4ac453a;p=fw%2Fsdcc * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays) git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4638 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/ChangeLog b/ChangeLog index 32bd3e6f..ad2a84fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-02-18 Raphael Neider + + * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays) + 2007-02-17 Borut Razem * support/cpp2/directives.c, support/cpp2/version.c: diff --git a/src/pic/glue.c b/src/pic/glue.c index 316bf02c..a2403e96 100644 --- a/src/pic/glue.c +++ b/src/pic/glue.c @@ -1928,7 +1928,7 @@ emitInitVal(struct dbuf_s *oBuf, symbol *topsym, sym_link *my_type, initList *li return; } - if (IS_ARRAY(my_type) && topsym->isstrlit) { + if (IS_ARRAY(my_type) && topsym && topsym->isstrlit) { str = (unsigned char *)SPEC_CVAL(topsym->etype).v_char; emitIvalLabel(oBuf, topsym); do {