From cfed364dd0fc0e99ad7ba005a9deeffc587b85e9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 19 Dec 2019 17:20:08 +1100 Subject: [PATCH] AP_ROMFS: fixed build warning --- libraries/AP_ROMFS/AP_ROMFS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_ROMFS/AP_ROMFS.cpp b/libraries/AP_ROMFS/AP_ROMFS.cpp index 7bfc6b7466..9f6a05097b 100644 --- a/libraries/AP_ROMFS/AP_ROMFS.cpp +++ b/libraries/AP_ROMFS/AP_ROMFS.cpp @@ -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;