From a761d97bed373fa1beb35601fefcb163ddaa562a Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 14 Feb 2012 23:06:08 +0900 Subject: [PATCH] Fixed compiler warning --- examples/SpdyServer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/SpdyServer.cc b/examples/SpdyServer.cc index 240d65f6..cd7adfab 100644 --- a/examples/SpdyServer.cc +++ b/examples/SpdyServer.cc @@ -431,7 +431,7 @@ void prepare_response(Request *req, SpdyEventHandler *hd) bool method_found = false; bool scheme_found = false; bool version_found = false; - time_t last_mod; + time_t last_mod = 0; bool last_mod_found = false; for(int i = 0; i < (int)req->headers.size(); ++i) { const std::string &field = req->headers[i].first; @@ -607,8 +607,8 @@ public: SSLAcceptEventHandler(const Config *config, int fd, SSL *ssl, int64_t session_id) : EventHandler(config), - fd_(fd), ssl_(ssl), fail_(false), - want_read_(true), want_write_(true), finish_(false), + fd_(fd), ssl_(ssl), fail_(false), finish_(false), + want_read_(true), want_write_(true), session_id_(session_id) {} virtual ~SSLAcceptEventHandler()