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>2020-10-27 13:13:58 +0100
commit9e5fa742b6ef66a546c0a77c14f834f2268c5f71 (patch)
tree7a731e98d4519b66a7fac3bb686f098f2987f88d /src/writer.c
parentc63451092692c251cab874475d3540408ed5d8c2 (diff)
downloadserd-9e5fa742b6ef66a546c0a77c14f834f2268c5f71.tar.gz
serd-9e5fa742b6ef66a546c0a77c14f834f2268c5f71.tar.bz2
serd-9e5fa742b6ef66a546c0a77c14f834f2268c5f71.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 de37b984..96d2e92b 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -45,9 +45,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 {
@@ -165,7 +165,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);