summaryrefslogtreecommitdiff
path: root/src/htscatchurl.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-05-03 11:30:41 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-05-03 11:30:41 +0000
commit75faaf7f11c1611f5b98b13b7d6f44c861f857d7 (patch)
tree7e6d354f8391cbfb86807383a617038fa5b97c30 /src/htscatchurl.c
parent26e0b7e748badd2dd95d8b5a0743b0af5ea7f78f (diff)
Fixed zero-length files not being properly handled (not savec on disk, not updated)
Diffstat (limited to 'src/htscatchurl.c')
-rw-r--r--src/htscatchurl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/htscatchurl.c b/src/htscatchurl.c
index 9579687..577ee16 100644
--- a/src/htscatchurl.c
+++ b/src/htscatchurl.c
@@ -207,7 +207,8 @@ HTSEXT_API int catch_url(T_SOC soc,char* url,char* method,char* data) {
// Traitement des en-têtes
char BIGSTK loc[HTS_URLMAXSIZE*2];
htsblk blkretour;
- memset(&blkretour, 0, sizeof(htsblk)); // effacer
+ hts_init_htsblk(&blkretour);
+ //memset(&blkretour, 0, sizeof(htsblk)); // effacer
blkretour.location=loc; // si non nul, contiendra l'adresse véritable en cas de moved xx
// Lire en têtes restants
sprintf(data,"%s %s %s\r\n",method,url_fil,protocol);