projects
/
samtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
84fd13b
)
removed duplicate code from download_from_remote()
author
Henry Amrhein
<hamrhein@caltech.edu>
Sat, 22 Dec 2012 06:46:05 +0000
(22:46 -0800)
committer
Henry Amrhein
<hamrhein@caltech.edu>
Sat, 22 Dec 2012 06:46:05 +0000
(22:46 -0800)
bam_index.c
patch
|
blob
|
history
diff --git
a/bam_index.c
b/bam_index.c
index 3574cbc230aeee9c06e88791e2db7ee16e27e438..bc89b5b24b40736902d191c5e06774c8e8f228b6 100644
(file)
--- a/
bam_index.c
+++ b/
bam_index.c
@@
-521,10
+521,7
@@
static void download_from_remote(const char *url)
while ((l = knet_read(fp_remote, buf, buf_size)) != 0)
if (fwrite(buf, 1, l, fp) < l) {
fprintf(stderr, "[download_from_remote] fail to write to destination file.\n");
- free(buf);
- knet_close(fp_remote);
- fclose(fp);
- return;
+ break;
}
free(buf);
fclose(fp);