ref: 9e43c062c67fa6147502b8cd5dcd55d744fad0ba
parent: 4d3bd7972a348bbadd872312a68a0b2570a8bd02
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Oct 6 06:35:26 EDT 2015
Remove unneeded variable in addmacro()
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -30,12 +30,10 @@
{
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;
}