diff --git a/fastboot/fastboot_driver.cpp b/fastboot/fastboot_driver.cpp index c308420552ade7003af8776f6b9e01c39d94d542..aabc620d431a00cd7d663ae9cd870973e30b849a 100644 --- a/fastboot/fastboot_driver.cpp +++ b/fastboot/fastboot_driver.cpp @@ -462,6 +462,10 @@ RetCode FastBootDriver::SendBuffer(const std::vector<char>& buf) { } RetCode FastBootDriver::SendBuffer(const void* buf, size_t size) { + if (!size) { + return SUCCESS; + } + // Write the buffer ssize_t tmp = transport->Write(buf, size);