diff options
author | David Robillard <d@drobilla.net> | 2016-03-15 23:37:09 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 15:33:54 -0500 |
commit | 3bf99421c04fdcc789745b7c59fc9bee8edce06b (patch) | |
tree | bdd67c76a8a00e48f89b82088cc8a8ce1329a54d /src/writer.c | |
parent | 16e8c50a29d8a932fa84a74d0b2a732994116db0 (diff) | |
download | serd-3bf99421c04fdcc789745b7c59fc9bee8edce06b.tar.gz serd-3bf99421c04fdcc789745b7c59fc9bee8edce06b.tar.bz2 serd-3bf99421c04fdcc789745b7c59fc9bee8edce06b.zip |
Remove useless character counting
Diffstat (limited to 'src/writer.c')
-rw-r--r-- | src/writer.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/writer.c b/src/writer.c index a5a17163..6e49156a 100644 --- a/src/writer.c +++ b/src/writer.c @@ -44,9 +44,9 @@ typedef struct { SerdNode predicate; } 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}}; +static const WriteContext WRITE_CONTEXT_NULL = {{0, 0, 0, SERD_NOTHING}, + {0, 0, 0, SERD_NOTHING}, + {0, 0, 0, SERD_NOTHING}}; typedef enum { SEP_NONE, @@ -164,7 +164,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); |