[dovecot-cvs] dovecot/src/lib array.h,1.9,1.10
cras at dovecot.org
cras at dovecot.org
Sun Apr 10 18:47:53 EEST 2005
Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv20508
Modified Files:
array.h
Log Message:
ARRAY_CREATE() macro fix. Wasn't working in all situations.
Index: array.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/array.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- array.h 8 Apr 2005 15:22:28 -0000 1.9
+++ array.h 10 Apr 2005 15:47:50 -0000 1.10
@@ -46,7 +46,7 @@
# define ARRAY_DEFINE_PTR(name, array_type) \
name; array_type **name ## __ ## type
# define ARRAY_CREATE(array, pool, array_type, init_count) STMT_START { \
- array_type *_array_tmp = *(array ## __ ## type); _array_tmp = NULL; \
+ array_type **_array_tmp = array ## __ ## type; _array_tmp = NULL; \
array_create(array, pool, sizeof(array_type), init_count); \
} STMT_END
# define ARRAY_SET_TYPE(array, array_type) \
More information about the dovecot-cvs
mailing list