From 16ae283fb46a852a70a4ef73bb3254239e59ea1e Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 9 Jun 2009 00:49:34 +0000 Subject: initialize fread callback pointer to avoid compiler warning --- CHANGES | 7 ++++++- RELEASE-NOTES | 2 +- lib/formdata.c | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index fba25bbed..aec53194c 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,11 @@ Changelog +Yang Tse (9 Jun 2009) +- Daniel Steinberg pointed out that Curl_FormInit() in formdata.c was not + initializing the fread callback pointer and this triggered a compiler + warning, also provided a friendly suggestion on how to fix it. + Daniel Stenberg (8 Jun 2009) - Claes Jakobsson provided a patch for libcurl-NSS that fixed a bad refcount issue with client certs that caused issues like segfaults. @@ -21,7 +26,7 @@ Yang Tse (8 Jun 2009) - Igor Novoseltsev adjusted Makefile.vxworks to get sources and headers included from Makefile.inc, and provided docs\INSTALL VxWorks section. - I removed buildconf.bat from release and daily snapshot archives. This +- I removed buildconf.bat from release and daily snapshot archives. This file is only for CVS tree checkout builds. Daniel Stenberg (8 Jun 2009) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index fa76d9afb..2061683da 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -36,6 +36,6 @@ advice from friends like these: Yang Tse, Daniel Fandrich, Kamil Dudka, Caolan McNamara, Frank McGeough, Andre Guibert de Bruet, Mike Crowe, Claes Jakobsson, John E. Malmberg, - Aaron Oneal, Igor Novoseltsev, Eric Wong, Bill Hoffman + Aaron Oneal, Igor Novoseltsev, Eric Wong, Bill Hoffman, Daniel Steinberg, Thanks! (and sorry if I forgot to mention someone) diff --git a/lib/formdata.c b/lib/formdata.c index aa644ecb2..f2a4892bf 100644 --- a/lib/formdata.c +++ b/lib/formdata.c @@ -1425,6 +1425,7 @@ int Curl_FormInit(struct Form *form, struct FormData *formdata ) form->data = formdata; form->sent = 0; form->fp = NULL; + form->fread_func = ZERO_NULL; return 0; } -- cgit v1.2.3