mail[Wesnoth-commits] r28920 - /trunk/src/md5.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on August 24, 2008 - 11:58:
Author: mordante
Date: Sun Aug 24 11:58:18 2008
New Revision: 28920

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28920&view=rev
Log:
Initialize all members.

Modified:
    trunk/src/md5.cpp

Modified: trunk/src/md5.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/md5.cpp?rev=28920&r1=28919&r2=28920&view=diff
==============================================================================
--- trunk/src/md5.cpp (original)
+++ trunk/src/md5.cpp Sun Aug 24 11:58:18 2008
@@ -58,14 +58,11 @@
 
 // MD5 simple initialization method
 
-MD5::MD5(){
-
+MD5::MD5()
+       : finalized(0)
+{
   init();
-
-}
-
-
-
+}
 
 // MD5 block update operation. Continues an MD5 message-digest
 // operation, processing another message block, and updating the
@@ -218,15 +215,18 @@
 
 }
 
-MD5::MD5(unsigned char *string){
+MD5::MD5(unsigned char *string)
+       : finalized(0)
+{
   init();
   update(string, strlen((char *)(string)));
   finalize();
 }
 
 
-MD5::MD5(FILE *file){
-
+MD5::MD5(FILE *file)
+       : finalized(0)
+{
   init();  // must be called be all constructors
   update(file);
   finalize ();
@@ -235,8 +235,9 @@
 
 
 
-MD5::MD5(std::istream& stream){
-
+MD5::MD5(std::istream& stream)
+       : finalized(0)
+{      
   init();  // must called by all constructors
   update (stream);
   finalize();
@@ -244,8 +245,9 @@
 
 
 
-MD5::MD5(std::ifstream& stream){
-
+MD5::MD5(std::ifstream& stream)
+       : finalized(0)
+{
   init();  // must called by all constructors
   update (stream);
   finalize();




Related Messages


Powered by MHonArc, Updated Sun Aug 24 12:02:23 2008