all repos — mgba @ e70df7b6f7e1d73f6489deb89ae9365e5f3edfd3

mGBA Game Boy Advance Emulator

All: Fix warnings
Jeffrey Pfau jeffrey@endrift.com
Sun, 25 Jan 2015 00:24:18 -0800
commit

e70df7b6f7e1d73f6489deb89ae9365e5f3edfd3

parent

e67bf2fd42db2534f32f72edfd0abc9f135bcfce

2 files changed, 1 insertions(+), 4 deletions(-)

jump to
M src/util/string.csrc/util/string.c

@@ -154,7 +154,7 @@ }

char* utf16to8(const uint16_t* utf16, size_t length) { char* utf8 = 0; - char* offset; + char* offset = 0; char buffer[4]; size_t utf8TotalBytes = 0; size_t utf8Length = 0;
M src/util/vfs/vfs-lzma.csrc/util/vfs/vfs-lzma.c

@@ -148,9 +148,6 @@ return position;

} if (position <= vf7z->size) { - if (read < 0) { - return -1; - } return vf7z->offset; }