aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-03-15 23:37:09 -0400
committerDavid Robillard <d@drobilla.net>2018-05-27 18:18:30 +0200
commit88ea0c449a8daa8951eca0ae69fd376f86122982 (patch)
treecf95d8fc4f7249498246aa815002ea0293cad713 /src/writer.c
parent9b3d8263604ba11ae008c8651a1fe2063296d6b1 (diff)
downloadserd-88ea0c449a8daa8951eca0ae69fd376f86122982.tar.gz
serd-88ea0c449a8daa8951eca0ae69fd376f86122982.tar.bz2
serd-88ea0c449a8daa8951eca0ae69fd376f86122982.zip
Remove useless character counting
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/writer.c b/src/writer.c
index 26bf5e5a..cecaacf5 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -28,9 +28,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 {
@@ -148,7 +148,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);