Forgotten in previous. Noticed by nigel@

This commit is contained in:
jca 2014-11-02 10:27:43 +00:00
parent 203f3b2c55
commit a2204aa1e2

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-cstring_h,v 1.2 2010/08/30 21:40:29 jasper Exp $
--- cstring.h.orig Thu Jun 17 03:14:33 2010
+++ cstring.h Mon Aug 30 15:01:46 2010
@@ -18,7 +18,7 @@
*/
#define STRING(type) struct { type *text; int size, alloc; }
-#define CREATE(x) T(x) = (void*)(S(x) = (x).alloc = 0)
+#define CREATE(x) T(x) = NULL; (S(x) = (x).alloc = 0)
#define EXPAND(x) (S(x)++)[(S(x) < (x).alloc) \
? (T(x)) \
: (T(x) = T(x) ? realloc(T(x), sizeof T(x)[0] * ((x).alloc += 100)) \