Merge "fastboot: Don't give parsing error for unsupported 'getvar erase-block-size'."
am: e5ff9b988c
Change-Id: I037d5d1d9c09ab91fbbd770dfab038aaf3bcc300
This commit is contained in:
commit
5cea27baad
1 changed files with 1 additions and 1 deletions
|
|
@ -1354,7 +1354,7 @@ static std::string fb_fix_numeric_var(std::string var) {
|
|||
|
||||
static unsigned fb_get_flash_block_size(Transport* transport, std::string name) {
|
||||
std::string sizeString;
|
||||
if (!fb_getvar(transport, name.c_str(), &sizeString)) {
|
||||
if (!fb_getvar(transport, name.c_str(), &sizeString) || sizeString.empty()) {
|
||||
/* This device does not report flash block sizes, so return 0 */
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue