Selaa lähdekoodia

Merge pull request #1036 from gjasny/replace-memset

Replace memset by value-initialization
bel2125 3 vuotta sitten
vanhempi
commit
41181944d6
1 muutettua tiedostoa jossa 0 lisäystä ja 2 poistoa
  1. 0 2
      src/CivetServer.cpp

+ 0 - 2
src/CivetServer.cpp

@@ -396,7 +396,6 @@ CivetServer::CivetServer(const char **options,
     : context(0)
 {
 	struct CivetCallbacks callbacks;
-	memset(&callbacks, 0, sizeof(callbacks));
 
 	UserContext = UserContextIn;
 
@@ -420,7 +419,6 @@ CivetServer::CivetServer(const std::vector<std::string> &options,
     : context(0)
 {
 	struct CivetCallbacks callbacks;
-	memset(&callbacks, 0, sizeof(callbacks));
 
 	UserContext = UserContextIn;