diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 037916ea4..94d216db4 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1487,7 +1487,7 @@ static std::string repack_ramdisk(const char* pname, struct fastboot_buffer* buf void do_flash(const char* pname, const char* fname, const bool apply_vbmeta) { verbose("Do flash %s %s", pname, fname); - struct fastboot_buffer buf; + struct fastboot_buffer buf{}; if (!load_buf(fname, &buf)) { die("cannot load '%s': %s", fname, strerror(errno));