]> git.saurik.com Git - apt.git/blobdiff - methods/server.cc
Use some semantically more correct buffer operations
[apt.git] / methods / server.cc
index 6340390d48c8f5c4314fb1da0d118e60ca1eccf1..322b8d94ca1dfcdd98f20ff20715aa1659437a97 100644 (file)
@@ -246,7 +246,8 @@ bool ServerState::HeaderLine(string Line)
 }
                                                                        /*}}}*/
 // ServerState::ServerState - Constructor                              /*{{{*/
-ServerState::ServerState(URI Srv, ServerMethod *Owner) : ServerName(Srv), TimeOut(120), Owner(Owner)
+ServerState::ServerState(URI Srv, ServerMethod *Owner) :
+   DownloadSize(0), ServerName(Srv), TimeOut(120), Owner(Owner)
 {
    Reset();
 }