From 5a83976c996a33283c3aca29de86d77a238429b9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 20 Jan 2003 12:52:34 +0000 Subject: Markus F.X.J. Oberhumer's patch that reduces memory usage quite a bit by only allocating the scratch memory buffer once it is needed and not always in the handle. --- lib/urldata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/urldata.h') diff --git a/lib/urldata.h b/lib/urldata.h index d68e00998..bd0c80024 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -598,7 +598,7 @@ struct UrlState { struct curl_ssl_session *session; /* array of 'numsessions' size */ long sessionage; /* number of the most recent session */ - char scratch[BUFSIZE*2]; /* huge buffer when doing upload CRLF replacing */ + char *scratch; /* huge buffer[BUFSIZE*2] when doing upload CRLF replacing */ bool errorbuf; /* Set to TRUE if the error buffer is already filled in. This must be set to FALSE every time _easy_perform() is called. */ -- cgit v1.2.3