Skip to content

Commit

Permalink
Remove some unused variables in utf16 decode
Browse files Browse the repository at this point in the history
Should hopefully resolve issue #1030 which gave valgrind errors due to
uninitialized variables.
  • Loading branch information
samcv committed Jan 7, 2019
1 parent 07de921 commit ec8a240
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/strings/utf16.c
Expand Up @@ -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;
Expand Down

0 comments on commit ec8a240

Please sign in to comment.