]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/gary.h
Conf: Decoupled cf_stack_done() from committing
[libucw.git] / ucw / gary.h
index 942f9b9c95bd30a8f5b394419e29af4ad46cbf76..b87a6fef03c36c5debe42ab9a21e6b0cbc9215b9 100644 (file)
@@ -23,7 +23,7 @@ struct gary_hdr {
 #define GARY_FREE(ptr) do { if (ptr) xfree(GARY_HDR(ptr)); } while (0)
 #define GARY_SIZE(ptr) (GARY_HDR(ptr)->num_elts)
 #define GARY_RESIZE(ptr, n) (ptr) = gary_set_size((ptr), (n))
-#define GARY_INIT_OR_RESIZE(ptr, n) (ptr) = (ptr) ? gary_set_size((ptr), (n)) : gary_init(sizeof(*(ptr)), (n))
+#define GARY_INIT_OR_RESIZE(ptr, n) (ptr) = (ptr) ? gary_set_size((ptr), (n)) : gary_init(sizeof(*(ptr)), (n), 0)
 
 #define GARY_PUSH(ptr, n) ({                                           \
   struct gary_hdr *_h = GARY_HDR(ptr);                                 \