diff --git a/cstring.h b/cstring.h index 86755e8..96ad841 100644 --- a/cstring.h +++ b/cstring.h @@ -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) = (void*)0), (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)) \