initialize fread callback pointer to avoid compiler warning
authorYang Tse <yangsita@gmail.com>
Tue, 9 Jun 2009 00:49:34 +0000 (00:49 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 9 Jun 2009 00:49:34 +0000 (00:49 +0000)
CHANGES
RELEASE-NOTES
lib/formdata.c

diff --git a/CHANGES b/CHANGES
index fba25bb..aec5319 100644 (file)
--- 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)
index fa76d9a..2061683 100644 (file)
@@ -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)
index aa644ec..f2a4892 100644 (file)
@@ -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;
 }