Selaa lähdekoodia

2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

	Fixed compiler warning
	* src/Cookie.cc
Tatsuhiro Tsujikawa 17 vuotta sitten
vanhempi
commit
53151f7e91
2 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 5 0
      ChangeLog
  2. 1 1
      src/Cookie.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-12-16  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
+
+	Fixed compiler warning
+	* src/Cookie.cc
+
 2008-12-16  Tatsuhiro Tsujikawa  <t-tujikawa@users.sourceforge.net>
 
 	Fixed the cookie implementation based on RFC2965. 

+ 1 - 1
src/Cookie.cc

@@ -180,7 +180,7 @@ bool Cookie::validate(const std::string& requestHost,
     size_t dotCount = std::count(normReqHost.begin(),
                                  normReqHost.begin()+
                                  (normReqHost.size()-_domain.size()), '.');
-    if(dotCount > 1 || dotCount == 1 && normReqHost[0] != '.') {
+    if(dotCount > 1 || (dotCount == 1 && normReqHost[0] != '.')) {
       return false;
     } 
   }