mirror of
https://github.com/samba-team/samba.git
synced 2025-12-23 00:23:53 +03:00
security descriptors.
kanji const char* warnings.
This commit is contained in:
@@ -1655,7 +1655,13 @@ extern int unix_ERR_code;
|
||||
#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x))
|
||||
|
||||
/* zero a structure given a pointer to the structure */
|
||||
#define ZERO_STRUCTP(x) memset((char *)(x), 0, sizeof(*(x)))
|
||||
#if 0
|
||||
#define ZERO_STRUCTP(x) { }
|
||||
#else
|
||||
#define ZERO_STRUCTP(x) { if (x != NULL) memset((char *)(x), 0, sizeof(*(x))); }
|
||||
#endif
|
||||
|
||||
#define ZERO_STRUCTPN(x) { if (x != NULL) ZERO_STRUCTP(x); }
|
||||
|
||||
/* zero an array - note that sizeof(array) must work - ie. it must not be a
|
||||
pointer */
|
||||
|
||||
Reference in New Issue
Block a user