You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2015/04/28 22:16:14 UTC
trafficserver git commit: TS-3447: Minor code cleanup.
Repository: trafficserver
Updated Branches:
refs/heads/master 4561001e2 -> 966353bc9
TS-3447: Minor code cleanup.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/966353bc
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/966353bc
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/966353bc
Branch: refs/heads/master
Commit: 966353bc9c1718ac57ea1530b41c887975422e56
Parents: 4561001
Author: Alan M. Carroll <so...@yahoo-inc.com>
Authored: Tue Apr 28 20:15:07 2015 +0000
Committer: Alan M. Carroll <so...@yahoo-inc.com>
Committed: Tue Apr 28 20:15:07 2015 +0000
----------------------------------------------------------------------
plugins/experimental/buffer_upload/buffer_upload.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/966353bc/plugins/experimental/buffer_upload/buffer_upload.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/buffer_upload/buffer_upload.cc b/plugins/experimental/buffer_upload/buffer_upload.cc
index c8ed80a..c90948a 100644
--- a/plugins/experimental/buffer_upload/buffer_upload.cc
+++ b/plugins/experimental/buffer_upload/buffer_upload.cc
@@ -752,7 +752,7 @@ attach_pvc_plugin(TSCont /* contp ATS_UNUSED */, TSEvent event, void *edata)
TSDebug(DEBUG_TAG, "Adding host to request url: %s", replacement_host_str);
const char *colon = strchr(replacement_host_str, ':');
- if (colon != NULL && colon + 1 != NULL) {
+ if (colon != NULL && colon[1] != '\0') {
int length = 0;
const char *scheme = TSUrlSchemeGet(req_bufp, url_loc, &length);
int port_str_val = atoi(colon + 1);