From 1df64d3278378d0d234be11cfeafec5e6a96bd2d Mon Sep 17 00:00:00 2001 From: Jesse Zhao Date: Tue, 17 Feb 2015 17:09:23 -0800 Subject: Initialize stashbase even stash_max_blocks = 0 Change-Id: I480c02ffedd811f4dda9940ef979a05ff54f1435 Bug: 19410117 --- updater/blockimg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'updater') 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, ¶ms.stashbase); -- cgit v1.1