diff options
-rw-r--r-- | fastboot/fastboot_driver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fastboot/fastboot_driver.cpp b/fastboot/fastboot_driver.cpp index c30842055..aabc620d4 100644 --- a/fastboot/fastboot_driver.cpp +++ b/fastboot/fastboot_driver.cpp | |||
@@ -462,6 +462,10 @@ RetCode FastBootDriver::SendBuffer(const std::vector<char>& buf) { | |||
462 | } | 462 | } |
463 | 463 | ||
464 | RetCode FastBootDriver::SendBuffer(const void* buf, size_t size) { | 464 | RetCode FastBootDriver::SendBuffer(const void* buf, size_t size) { |
465 | if (!size) { | ||
466 | return SUCCESS; | ||
467 | } | ||
468 | |||
465 | // Write the buffer | 469 | // Write the buffer |
466 | ssize_t tmp = transport->Write(buf, size); | 470 | ssize_t tmp = transport->Write(buf, size); |
467 | 471 | ||