Fix the warnings.

This commit is contained in:
sorgelig
2019-01-10 09:52:27 +08:00
parent 323b842dbe
commit ed41061adc
2 changed files with 2 additions and 3 deletions

View File

@@ -1085,7 +1085,7 @@ int ScanDirectory(char* path, int mode, const char *extension, int options, cons
mz_zip_archive *z = nullptr;
if (is_zipped)
{
mz_zip_archive _z = { 0 };
mz_zip_archive _z = {};
if (!mz_zip_reader_init_file(&_z, zip_path.c_str(), 0))
{
printf("Couldn't open zip file %s: %s\n", full_path, mz_zip_get_error_string(mz_zip_get_last_error(z)));
@@ -1112,7 +1112,7 @@ int ScanDirectory(char* path, int mode, const char *extension, int options, cons
scheduler_yield();
}
struct dirent _de = { 0 };
struct dirent _de = {};
if (z) {
mz_zip_reader_get_filename(z, i, &_de.d_name[0], sizeof(_de.d_name));
if (!IsInSameFolder(file_path_in_zip.c_str(), _de.d_name))

View File

@@ -61,7 +61,6 @@ int sharpmz_file_write(fileTYPE *file, const char *fileName)
{
int ret;
char fullPath[1024];
struct stat64 st;
sprintf(fullPath, "%s/%s/%s", getRootDir(), SHARPMZ_CORE_NAME, fileName);