scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 050562adca2a8140db340bfe6f64bd06803f1aab
parent 365103f5a1d39cc5d698d751159268f20f2b66fd
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 27 Dec 2017 13:25:05 +0000

[as] Initialize sec->mem in new sections

Diffstat:
Mas/symbol.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/as/symbol.c b/as/symbol.c @@ -202,6 +202,7 @@ setsec(char *name, char *attr) if ((sec = sym->section) == NULL) { sec = xmalloc(sizeof(*sec)); + sec->mem = NULL; sec->sym = sym; sec->base = sec->max = sec->pc = sec->curpc = 0; sec->next = seclist;