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>2019-04-13 19:15:32 +0200
commit2a480d8cc56fe4d29fba2759b62d9f09fc0cc87e (patch)
tree3a8e1574df9fd422e3f9118dffd00efdfd3a9ee8 /src/writer.c
parenta549e968cd3f840dc98b2e199c5f52e9f5a5780c (diff)
downloadserd-2a480d8cc56fe4d29fba2759b62d9f09fc0cc87e.tar.gz
serd-2a480d8cc56fe4d29fba2759b62d9f09fc0cc87e.tar.bz2
serd-2a480d8cc56fe4d29fba2759b62d9f09fc0cc87e.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 e9f928b8..1b6d0829 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);