[hackers] [scc] [PATCH] [cc2] Fix memset argument

From: Alexander Krotov <ilabdsf_AT_yandex.ru>
Date: Thu, 14 Apr 2016 01:30:55 +0300

---
 cc2/node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cc2/node.c b/cc2/node.c
index 67da0ad..2a53825 100644
--- a/cc2/node.c
+++ b/cc2/node.c
_AT_@ -40,7 +40,7 @@ newnode(void)
 	np = freep;
 	freep = np->left;
 
-	return memset(np, 0, sizeof(np));
+	return memset(np, 0, sizeof(*np));
 }
 
 void
-- 
2.8.1
Received on Thu Apr 14 2016 - 00:30:55 CEST

This archive was generated by hypermail 2.3.0 : Thu Apr 14 2016 - 00:36:15 CEST