AP_ROMFS: fixed build warning

This commit is contained in:
Andrew Tridgell 2019-12-19 17:20:08 +11:00
parent a9946b41e9
commit cfed364dd0
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ const uint8_t *AP_ROMFS::find_file(const char *name, uint32_t &size)
*/
const uint8_t *AP_ROMFS::find_decompress(const char *name, uint32_t &size)
{
uint32_t compressed_size;
uint32_t compressed_size = 0;
const uint8_t *compressed_data = find_file(name, compressed_size);
if (!compressed_data) {
return nullptr;