Loading fs_mgr/fs_mgr_slotselect.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -35,10 +35,11 @@ int fs_mgr_update_for_slotselect(struct fstab *fstab) return -1; } got_suffix = 1; // remove below line when bootloaders fix androidboot.slot_suffix param if (suffix[0] == '_') suffix.erase(suffix.begin()); } if (asprintf(&tmp, "%s%s", fstab->recs[n].blk_device, suffix.c_str()) > 0) { if (asprintf(&tmp, "%s_%s", fstab->recs[n].blk_device, suffix.c_str()) > 0) { free(fstab->recs[n].blk_device); fstab->recs[n].blk_device = tmp; } else { Loading Loading
fs_mgr/fs_mgr_slotselect.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -35,10 +35,11 @@ int fs_mgr_update_for_slotselect(struct fstab *fstab) return -1; } got_suffix = 1; // remove below line when bootloaders fix androidboot.slot_suffix param if (suffix[0] == '_') suffix.erase(suffix.begin()); } if (asprintf(&tmp, "%s%s", fstab->recs[n].blk_device, suffix.c_str()) > 0) { if (asprintf(&tmp, "%s_%s", fstab->recs[n].blk_device, suffix.c_str()) > 0) { free(fstab->recs[n].blk_device); fstab->recs[n].blk_device = tmp; } else { Loading