[hackers] [scc] Remove unneeded variable in addmacro() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Tue, 6 Oct 2015 10:40:19 +0200 (CEST)

commit 9e43c062c67fa6147502b8cd5dcd55d744fad0ba
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Oct 6 10:35:26 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Tue Oct 6 10:35:26 2015 +0200

    Remove unneeded variable in addmacro()

diff --git a/cc1/cpp.c b/cc1/cpp.c
index 5473434..72202ce 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -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;
         }
Received on Tue Oct 06 2015 - 10:40:19 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 06 2015 - 10:48:10 CEST