diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-05-25 00:57:21 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-05-25 00:57:21 +0000 |
commit | 43a699a112c7ac988e25111a3849fa1d73e3b51c (patch) | |
tree | 8890e16f55cdb48770929c6481e00513a343e414 /runtime | |
parent | 717f7fa12a7a2ec076c138122bef9006b6b54487 (diff) | |
download | external_llvm-43a699a112c7ac988e25111a3849fa1d73e3b51c.zip external_llvm-43a699a112c7ac988e25111a3849fa1d73e3b51c.tar.gz external_llvm-43a699a112c7ac988e25111a3849fa1d73e3b51c.tar.bz2 |
Early-continue.Reducing indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/libprofile/GCDAProfiling.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/runtime/libprofile/GCDAProfiling.c b/runtime/libprofile/GCDAProfiling.c index 568b2b0..2c37348 100644 --- a/runtime/libprofile/GCDAProfiling.c +++ b/runtime/libprofile/GCDAProfiling.c @@ -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); } } |