Initialize stashbase even stash_max_blocks = 0

Change-Id: I480c02ffedd811f4dda9940ef979a05ff54f1435
Bug: 19410117
This commit is contained in:
Jesse Zhao
2015-02-17 17:09:23 -08:00
parent 2622ee3efb
commit 1df64d3278
+1 -1
View File
@@ -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);