Skip to content

Commit

Permalink
fix #151
Browse files Browse the repository at this point in the history
  • Loading branch information
lomereiter committed Jul 2, 2015
1 parent 15bf114 commit 64bfe81
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sambamba/pileup.d
Original file line number Diff line number Diff line change
Expand Up @@ -647,10 +647,7 @@ int pileup_main(string[] args) {
defaultPoolThreads = n_threads;
auto bam = new MultiBamReader(own_args[1 .. $]);

char[] buf = tmp_dir_prefix ~ "/sambamba-fork-XXXXXX\0".dup;
mkdtemp(buf.ptr);

string tmp_dir = to!string(buf.ptr);
string tmp_dir = randomSubdir(tmp_dir_prefix);
scope(exit) rmdirRecurse(tmp_dir);

auto bundled_args = Args(samtools_args, bcftools_args);
Expand Down

0 comments on commit 64bfe81

Please sign in to comment.