Early-continue.Reducing indentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157451 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2012-05-25 00:57:21 +00:00
parent 717f7fa12a
commit 43a699a112

View File

@ -85,17 +85,16 @@ static void recursive_mkdir(const char *filename) {
int i, e;
for (i = 1, e = strlen(filename); i != e; ++i) {
if (filename[i] == '/') {
pathname = malloc(i + 1);
strncpy(pathname, filename, i);
pathname[i] = '\0';
if (filename[i] != '/') continue;
pathname = malloc(i + 1);
strncpy(pathname, filename, i);
pathname[i] = '\0';
#ifdef _WIN32
_mkdir(pathname);
_mkdir(pathname);
#else
mkdir(pathname, 0750); /* some of these will fail, ignore it. */
mkdir(pathname, 0750); /* some of these will fail, ignore it. */
#endif
free(pathname);
}
free(pathname);
}
}