diff options
author | Koushik Dutta <koushd@gmail.com> | 2011-06-15 00:00:55 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2011-06-15 00:00:55 -0700 |
commit | 7905c80940acfe796619631e74999202f3dd5394 (patch) | |
tree | 51613e37cafa3d7ed33822012f0144904682a971 /roots.c | |
parent | fcb87af7351e71c343188e20ea0b4457e32f2e01 (diff) | |
download | android_bootable_recovery-7905c80940acfe796619631e74999202f3dd5394.tar.gz android_bootable_recovery-7905c80940acfe796619631e74999202f3dd5394.tar.bz2 android_bootable_recovery-7905c80940acfe796619631e74999202f3dd5394.zip |
bug fixes
Change-Id: I1125db9cb1a12a95060f7673965fd40994a78c5b
Diffstat (limited to 'roots.c')
-rw-r--r-- | roots.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -287,8 +287,8 @@ int format_volume(const char* volume) { Volume* v = volume_for_path(volume); if (v == NULL) { // no /sdcard? let's assume /data/media - if (strstr(path, "/sdcard") == path && is_data_media()) { - return format_unknown_device(v->device, volume, NULL); + if (strstr(volume, "/sdcard") == volume && is_data_media()) { + return format_unknown_device(NULL, volume, NULL); } // silent failure for sd-ext if (strcmp(volume, "/sd-ext") == 0) |