All: Fix warnings

This commit is contained in:
Jeffrey Pfau 2015-01-25 00:24:18 -08:00
parent e67bf2fd42
commit e70df7b6f7
2 changed files with 1 additions and 4 deletions

View File

@ -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* utf16to8(const uint16_t* utf16, size_t length) {
char* utf8 = 0; char* utf8 = 0;
char* offset; char* offset = 0;
char buffer[4]; char buffer[4];
size_t utf8TotalBytes = 0; size_t utf8TotalBytes = 0;
size_t utf8Length = 0; size_t utf8Length = 0;

View File

@ -148,9 +148,6 @@ off_t _vf7zSeek(struct VFile* vf, off_t offset, int whence) {
} }
if (position <= vf7z->size) { if (position <= vf7z->size) {
if (read < 0) {
return -1;
}
return vf7z->offset; return vf7z->offset;
} }