llvm.org GIT mirror llvm / d006ddc
Fix crash when not setting GCOV_PREFIX. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130834 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5353 prefix = getenv("GCOV_PREFIX");
5454
5555 if (!prefix)
56 return strdup(filename);
56 return strdup(orig_filename);
5757
5858 filename = malloc(strlen(prefix) + 1 + strlen(orig_filename) + 1);
5959 strcpy(filename, prefix);