You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2016/10/27 08:45:17 UTC
[trafficserver] branch master updated: TS-4815 - CID 1267839 dead
code in /mgmt/api/CfgContextManager.cc: return TS_ERR_PARAMS;
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 33cd156 TS-4815 - CID 1267839 dead code in /mgmt/api/CfgContextManager.cc: return TS_ERR_PARAMS;
33cd156 is described below
commit 33cd1569b536611f9b844ebc276edcb03ffb24c3
Author: Nathan Garabedian <ng...@users.noreply.github.com>
AuthorDate: Wed Sep 21 13:01:30 2016 -0700
TS-4815 - CID 1267839 dead code in /mgmt/api/CfgContextManager.cc: return TS_ERR_PARAMS;
---
mgmt/api/CfgContextManager.cc | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/mgmt/api/CfgContextManager.cc b/mgmt/api/CfgContextManager.cc
index dec252e..fc013e6 100644
--- a/mgmt/api/CfgContextManager.cc
+++ b/mgmt/api/CfgContextManager.cc
@@ -162,10 +162,7 @@ CfgContextGet(CfgContext *ctx)
RuleList *rule_list = NULL;
CfgEleObj *ele = NULL;
- ink_assert(ctx);
- if (!ctx) {
- return TS_ERR_PARAMS;
- }
+ ink_release_assert(ctx);
// get copy of the file
ret = ReadFile(ctx->getFilename(), &old_text, &size, &ver);
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].