Fix EMPTY_BYTES definition

This commit is contained in:
Tony Garnock-Jones 2010-12-27 18:49:37 -05:00
parent f966b37d7a
commit 0c97b76064
1 changed files with 1 additions and 1 deletions

View File

@ -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);