From 5e2dba1635d95728c5244f8045cf0b391944f1fb Mon Sep 17 00:00:00 2001 From: rousskov <> Date: Fri, 31 Jul 1998 03:52:01 +0000 Subject: [PATCH] - minor fix, rep can be NULL in clientBuildRangeHeader. --- src/client_side.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client_side.cc b/src/client_side.cc index c8e12eae67..fa90e3413f 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.369 1998/07/30 21:49:11 rousskov Exp $ + * $Id: client_side.cc,v 1.370 1998/07/30 21:52:01 rousskov Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -874,7 +874,7 @@ clientIfRangeMatch(clientHttpRequest * http, HttpReply * rep) static void clientBuildRangeHeader(clientHttpRequest * http, HttpReply * rep) { - HttpHeader *hdr = &rep->header; + HttpHeader *hdr = rep ? &rep->header : 0; const char *range_err = NULL; assert(http->request->range); /* check if we still want to do ranges */ -- 2.47.2