scc

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

commit 9e43c062c67fa6147502b8cd5dcd55d744fad0ba
parent 4d3bd7972a348bbadd872312a68a0b2570a8bd02
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue,  6 Oct 2015 10:35:26 +0200

Remove unneeded variable in addmacro()

Diffstat:
Mcc1/cpp.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/cc1/cpp.c b/cc1/cpp.c @@ -30,12 +30,10 @@ defmacro(char *s) { char *p, *q; Symbol *sym; - size_t len; if ((p = strchr(s, '=')) != NULL) { *p++='\0'; - len = strlen(p); - q = xmalloc(len+4); + q = xmalloc(strlen(p) + 4); sprintf(q, "-1#%s", p); p = q; }