We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear empty files in archive function, and zip_close after execute function fail
struct zip_t* zip = zip_open(LU_LOG_PATH, 0, 'd'); int count = zip_entries_total(zip); char* entries[50]; int entryIndex = 0; for (int i = 0; i < count; i++) { zip_entry_openbyindex(zip, i); if (zip->entry.uncomp_size <= 0) { char* entryReplaced = zip->entry.name; entries[entryIndex] = malloc(MAX_PATH); memcpy(entries[entryIndex], entryReplaced, strlen(entryReplaced) + 1); entryIndex++; } } zip_entries_delete(zip, entries, entryIndex); ftell(zip->archive.m_pState->m_pFile); //<-- ftell fails... zip->archive.m_pState->m_pFile was closed zip_close(zip);; //<-- zip_close fails by fails _ftelli64, because file stream is closed
The text was updated successfully, but these errors were encountered:
Modify zip.c for bypass this problem #267
Sorry, something went wrong.
No branches or pull requests
Clear empty files in archive function, and zip_close after execute function fail
The text was updated successfully, but these errors were encountered: