summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorJesse Zhao <jessezhao@google.com>2015-02-17 17:09:23 -0800
committerJesse Zhao <jessezhao@google.com>2015-02-17 17:09:29 -0800
commit1df64d3278378d0d234be11cfeafec5e6a96bd2d (patch)
treec35087524af3772e850942d3335df1bb76bc4a43 /updater
parent2622ee3efb89c2bb67abf4d1199cd8f158bb1138 (diff)
downloadbootable_recovery-1df64d3278378d0d234be11cfeafec5e6a96bd2d.zip
bootable_recovery-1df64d3278378d0d234be11cfeafec5e6a96bd2d.tar.gz
bootable_recovery-1df64d3278378d0d234be11cfeafec5e6a96bd2d.tar.bz2
Initialize stashbase even stash_max_blocks = 0
Change-Id: I480c02ffedd811f4dda9940ef979a05ff54f1435 Bug: 19410117
Diffstat (limited to 'updater')
-rw-r--r--updater/blockimg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/blockimg.c b/updater/blockimg.c
index a0f81e9..9c39634 100644
--- a/updater/blockimg.c
+++ b/updater/blockimg.c
@@ -1643,7 +1643,7 @@ static Value* PerformBlockImageUpdate(const char* name, State* state, int argc,
goto pbiudone;
}
- if (stash_max_blocks > 0) {
+ if (stash_max_blocks >= 0) {
res = CreateStash(state, stash_max_blocks, blockdev_filename->data,
&params.stashbase);