diff options
Diffstat (limited to 'source3/aparser')
-rw-r--r-- | source3/aparser/parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/aparser/parser.h b/source3/aparser/parser.h index 3d6540d8a7..319aeb5d13 100644 --- a/source3/aparser/parser.h +++ b/source3/aparser/parser.h @@ -52,7 +52,7 @@ typedef char fstring[FSTRING_LEN]; #define True 1 /* zero a structure given a pointer to the structure */ -#define ZERO_STRUCTP(x) { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); } +#define ZERO_STRUCTP(x) do { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); } while(0) #define MAX_UNISTRLEN 256 #define MAX_STRINGLEN 256 |