From ec8a240e327e855a17a258b1a5384ec1e024367d Mon Sep 17 00:00:00 2001 From: Samantha McVey Date: Mon, 7 Jan 2019 08:09:57 +0100 Subject: [PATCH] Remove some unused variables in utf16 decode Should hopefully resolve issue #1030 which gave valgrind errors due to uninitialized variables. --- src/strings/utf16.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/strings/utf16.c b/src/strings/utf16.c index 1aaeb93b83..48b1ec53b6 100644 --- a/src/strings/utf16.c +++ b/src/strings/utf16.c @@ -59,8 +59,6 @@ MVMuint32 MVM_string_utf16_decodestream_main(MVMThreadContext *tc, MVMDecodeStre MVMint32 last_accept_pos, last_was_cr; MVMuint32 reached_stopper; int low, high; - MVMint32 pos = cur_bytes == ds->bytes_head ? ds->bytes_head_pos : 0; - MVMuint8 *bytes = (unsigned char *)cur_bytes->bytes; /* Set to 1 to remove the BOM even when big endian or little endian are * explicitly specified. */ int remove_bom = 0;