aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2004-11-19 06:12:16 +0000
committerJason Woodward2004-11-19 06:12:16 +0000
commitfa060b2e92a1a4d98783322302a9d35a5ca4d4cb (patch)
tree36fe455e096b5368acbeaece9cdf72eeee92affc /src
parent71eed0a7646ef669d63d106d9610fe22db67b880 (diff)
downloadslapt-get-fa060b2e92a1a4d98783322302a9d35a5ca4d4cb.tar.gz
fixed regression where last change broke package source caching
Diffstat (limited to 'src')
-rw-r--r--src/package.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/package.c b/src/package.c
index 59b56d1..77dc5ec 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1464,9 +1464,8 @@ char *head_mirror_data(const char *wurl,const char *file){
free(head_data);
return NULL;
}
- request_header_len =
- (request_header_ptr == NULL) ? 0 : strlen(request_header_ptr) -
- (delim_ptr == NULL) ? 0 : strlen(delim_ptr);
+
+ request_header_len = strlen(request_header_ptr) - strlen(delim_ptr);
request_header = calloc( request_header_len + 1, sizeof *request_header );
memcpy(request_header,request_header_ptr,request_header_len);