aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-13 18:42:31 +0000
committerDavid Robillard <d@drobilla.net>2012-05-13 18:42:31 +0000
commitc65f5f12bbde0290b79d8bcfe7be599d6c1de2fb (patch)
tree5c06cccf01b91c6267d7c2441ce188d03f700a87 /src
parent72e9384685b7b468dfb286079ef85e5fcb248432 (diff)
downloadserd-c65f5f12bbde0290b79d8bcfe7be599d6c1de2fb.tar.gz
serd-c65f5f12bbde0290b79d8bcfe7be599d6c1de2fb.tar.bz2
serd-c65f5f12bbde0290b79d8bcfe7be599d6c1de2fb.zip
Fix dead assignment.
git-svn-id: http://svn.drobilla.net/serd/trunk@352 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src')
-rw-r--r--src/writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c
index b03e5afd..02c362af 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -210,7 +210,7 @@ write_text(SerdWriter* writer, TextContext ctx,
fprintf(stderr, "Invalid UTF-8: %X\n", in);
const uint8_t replacement_char[] = { 0xEF, 0xBF, 0xBD };
len += sink(replacement_char, sizeof(replacement_char), writer);
- return 0;
+ return len;
}
if (ctx != WRITE_URI && !(writer->style & SERD_STYLE_ASCII)) {