trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhe...@apache.org
Subject trafficserver git commit: fix typo in conditional, resulting in coverity dead code
Date Mon, 05 Jan 2015 19:42:30 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 3f52f0c0d -> 774d893ce


fix typo in conditional, resulting in coverity dead code

Coverity CID #1022008.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/774d893c
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/774d893c
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/774d893c

Branch: refs/heads/master
Commit: 774d893ce4b68997cfbab930c5264de0fd5390f2
Parents: 3f52f0c
Author: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Authored: Mon Jan 5 19:39:18 2015 +0000
Committer: Sudheer Vinukonda <sudheerv@yahoo-inc.com>
Committed: Mon Jan 5 19:39:18 2015 +0000

----------------------------------------------------------------------
 mgmt/cluster/ClusterCom.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/774d893c/mgmt/cluster/ClusterCom.cc
----------------------------------------------------------------------
diff --git a/mgmt/cluster/ClusterCom.cc b/mgmt/cluster/ClusterCom.cc
index 7abad11..c3063ce 100644
--- a/mgmt/cluster/ClusterCom.cc
+++ b/mgmt/cluster/ClusterCom.cc
@@ -2070,7 +2070,7 @@ ClusterCom::sendReliableMessageReadTillClose(unsigned long addr, char
*buf, int
   }
 
   memset(tmp_reply, 0, 1024);
-  while ((res = read_socket(fd, tmp_reply, 1022) > 0)) {
+  while ((res = read_socket(fd, tmp_reply, 1022)) > 0) {
     if (tmp_reply[0] == (char)EOF) {
       break;
     }


Mime
View raw message