diff --git a/src/util/string.c b/src/util/string.c index 665ec9f58..5ca8ee299 100644 --- a/src/util/string.c +++ b/src/util/string.c @@ -154,7 +154,7 @@ int utfcmp(const uint16_t* utf16, const char* utf8, size_t utf16Length, size_t u 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; diff --git a/src/util/vfs/vfs-lzma.c b/src/util/vfs/vfs-lzma.c index f5907f72c..e429d7f29 100644 --- a/src/util/vfs/vfs-lzma.c +++ b/src/util/vfs/vfs-lzma.c @@ -148,9 +148,6 @@ off_t _vf7zSeek(struct VFile* vf, off_t offset, int whence) { } if (position <= vf7z->size) { - if (read < 0) { - return -1; - } return vf7z->offset; }