summaryrefslogtreecommitdiffstats
path: root/updater/install.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2011-10-31 17:34:15 +0100
committerDoug Zongker <dougz@android.com>2011-10-31 21:50:32 +0100
commit7d0542f28045640dfab6a259ae7bd796e653d66f (patch)
tree801e5acd7cb5a101182f325e1d4f343581b35801 /updater/install.c
parentrefactor ui functions into a class (diff)
downloadandroid_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.gz
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.bz2
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.lz
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.xz
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.tar.zst
android_bootable_recovery-7d0542f28045640dfab6a259ae7bd796e653d66f.zip
Diffstat (limited to 'updater/install.c')
-rw-r--r--updater/install.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/updater/install.c b/updater/install.c
index 7b4b99b01..f68bd03c8 100644
--- a/updater/install.c
+++ b/updater/install.c
@@ -792,11 +792,12 @@ Value* WriteRawImageFn(const char* name, State* state, int argc, Expr* argv[]) {
return NULL;
}
+ char* partition = NULL;
if (partition_value->type != VAL_STRING) {
ErrorAbort(state, "partition argument to %s must be string", name);
goto done;
}
- char* partition = partition_value->data;
+ partition = partition_value->data;
if (strlen(partition) == 0) {
ErrorAbort(state, "partition argument to %s can't be empty", name);
goto done;