Message ID | 20170224142750.4151-2-jlayton@samba.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/data_blob.c b/data_blob.c index 834d810c9d46..a884f132bcde 100644 --- a/data_blob.c +++ b/data_blob.c @@ -20,9 +20,12 @@ #include <string.h> -#include "replace.h" #include "data_blob.h" +#ifndef ZERO_STRUCT +#define ZERO_STRUCT(x) memset((char *)&(x), 0, sizeof(x)) +#endif + const DATA_BLOB data_blob_null = { NULL, 0 }; /**
We only need ZERO_STRUCT there. Signed-off-by: Jeff Layton <jlayton@samba.org> --- data_blob.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)