trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject [07/12] trafficserver git commit: Tidy up condition checks added for TS-3522.
Date Wed, 22 Apr 2015 16:55:26 GMT
Tidy up condition checks added for TS-3522.

(cherry picked from commit d73914f75e4db88eba39e6c644692dedc1fe37dd)


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

Branch: refs/heads/5.3.x
Commit: efd2db288c7e031bd28af7736bf1673c102cb65d
Parents: 61c6599
Author: shinrich <shinrich@yahoo-inc.com>
Authored: Mon Apr 20 15:48:03 2015 -0500
Committer: Phil Sorber <sorber@apache.org>
Committed: Tue Apr 21 14:50:11 2015 -0600

----------------------------------------------------------------------
 proxy/PluginVC.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/efd2db28/proxy/PluginVC.cc
----------------------------------------------------------------------
diff --git a/proxy/PluginVC.cc b/proxy/PluginVC.cc
index a457a40..51641e5 100644
--- a/proxy/PluginVC.cc
+++ b/proxy/PluginVC.cc
@@ -271,7 +271,7 @@ PluginVC::do_io_write(Continuation *c, int64_t nbytes, IOBufferReader
*abuffer,
 
   // Note: we set vio.op last because process_write_side looks at it to
   //  tell if the VConnection is active.
-  write_state.vio.mutex = c != NULL ? c->mutex : this->mutex;
+  write_state.vio.mutex = c ? c->mutex : this->mutex;
   write_state.vio._cont = c;
   write_state.vio.nbytes = nbytes;
   write_state.vio.ndone = 0;


Mime
View raw message