arrays. This prevents (harmless) warnings from some compilers
/* useful macros */
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
+#define ZERO_ARRAY(x) memset((char *)(x), 0, sizeof(x))
#define SMB_ASSERT(b) ((b)?(void)0: \
(DEBUG(0,("PANIC: assert failed at %s(%d)\n", \
__FILE__, __LINE__)), smb_panic("assert failed")))
ZERO_STRUCT(sid_S_1_1);
ZERO_STRUCT(sid_S_1_3);
ZERO_STRUCT(sid_S_1_5);
- ZERO_STRUCT(dom_rids);
+ ZERO_ARRAY(dom_rids);
/* grab the info class and policy handle */
lsa_io_q_lookup_rids("", &q_l, data, 0);
ZERO_STRUCT(sid_S_1_1);
ZERO_STRUCT(sid_S_1_3);
ZERO_STRUCT(sid_S_1_5);
- ZERO_STRUCT(dom_rids);
+ ZERO_ARRAY(dom_rids);
/* grab the info class and policy handle */
lsa_io_q_lookup_rids("", &q_l, data, 0);