Merge "DO NOT MERGE. Fix crash in vold" into klp-dev

gugelfrei
Jeff Sharkey 11 years ago committed by Android (Google) Code Review
commit 18afaca1ad

@ -1584,7 +1584,7 @@ int VolumeManager::mkdirs(char* path) {
// Require that path lives under a volume we manage
const char* emulated_source = getenv("EMULATED_STORAGE_SOURCE");
const char* root = NULL;
if (!strncmp(path, emulated_source, strlen(emulated_source))) {
if (emulated_source && !strncmp(path, emulated_source, strlen(emulated_source))) {
root = emulated_source;
} else {
Volume* vol = getVolumeForFile(path);

Loading…
Cancel
Save