From 0c97b76064ea4ce48c69aded113ad2879dd0989d Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Mon, 27 Dec 2010 18:49:37 -0500 Subject: [PATCH] Fix EMPTY_BYTES definition --- cmsg_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmsg_private.h b/cmsg_private.h index 37fc507..48e3412 100644 --- a/cmsg_private.h +++ b/cmsg_private.h @@ -6,7 +6,7 @@ typedef struct cmsg_bytes_t { void *bytes; } cmsg_bytes_t; -#define EMPTY_BYTES ((cmsg_bytes_t) { NULL, 0 }) +#define EMPTY_BYTES ((cmsg_bytes_t) { .len = 0, .bytes = NULL }) extern cmsg_bytes_t cmsg_cstring_bytes(char const *cstr); extern cmsg_bytes_t cmsg_bytes_malloc_dup(cmsg_bytes_t src);