diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/smb.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h index acbd56d81e..bb055214ec 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1655,10 +1655,7 @@ 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)) - -/* zero a structure given a pointer to the structure */ -#define ZERO_STRUCTPN(x) { if ((x) != NULL) ZERO_STRUCTP(x); } +#define ZERO_STRUCTP(x) { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); } /* zero an array - note that sizeof(array) must work - ie. it must not be a pointer */ |