From e70df7b6f7e1d73f6489deb89ae9365e5f3edfd3 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 25 Jan 2015 00:24:18 -0800 Subject: [PATCH] All: Fix warnings --- src/util/string.c | 2 +- src/util/vfs/vfs-lzma.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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; }