From 73de48faf2f11c1c3814fb73ff2faedfe2e15d22 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 15 Mar 2016 23:37:09 -0400 Subject: Remove useless character counting --- src/writer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/writer.c') diff --git a/src/writer.c b/src/writer.c index f3c74e75..4fea39e7 100644 --- a/src/writer.c +++ b/src/writer.c @@ -33,9 +33,9 @@ typedef struct { } WriteContext; static const WriteContext WRITE_CONTEXT_NULL = { - { 0, 0, 0, 0, SERD_NOTHING }, - { 0, 0, 0, 0, SERD_NOTHING }, - { 0, 0, 0, 0, SERD_NOTHING } + { 0, 0, 0, SERD_NOTHING }, + { 0, 0, 0, SERD_NOTHING }, + { 0, 0, 0, SERD_NOTHING } }; typedef enum { @@ -153,7 +153,6 @@ copy_node(SerdNode* dst, const SerdNode* src) if (src) { dst->buf = (uint8_t*)realloc((char*)dst->buf, src->n_bytes + 1); dst->n_bytes = src->n_bytes; - dst->n_chars = src->n_chars; dst->flags = src->flags; dst->type = src->type; memcpy((char*)dst->buf, src->buf, src->n_bytes + 1); -- cgit v1.2.1