You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2019/04/25 00:57:40 UTC
[trafficserver] branch master updated: Password can not be nullptr
here, so don't check
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 969a41c Password can not be nullptr here, so don't check
969a41c is described below
commit 969a41ce590fa725d7560cd07b9ec53af30a26ef
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Wed Apr 24 17:05:36 2019 +0800
Password can not be nullptr here, so don't check
---
src/traffic_server/InkAPITest.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/traffic_server/InkAPITest.cc b/src/traffic_server/InkAPITest.cc
index a89b9c1..5e57499 100644
--- a/src/traffic_server/InkAPITest.cc
+++ b/src/traffic_server/InkAPITest.cc
@@ -3836,7 +3836,7 @@ REGRESSION_TEST(SDK_API_TSUrl)(RegressionTest *test, int /* atype ATS_UNUSED */,
SDK_RPRINT(test, "TSUrlPasswordSet", "TestCase1", TC_FAIL, "Returned TS_ERROR");
} else {
password_get = TSUrlPasswordGet(bufp1, url_loc1, &length);
- if (((password_get == nullptr) && (password == nullptr)) || (strncmp(password_get, password, length) == 0)) {
+ if ((password_get == nullptr) || (strncmp(password_get, password, length) == 0)) {
SDK_RPRINT(test, "TSUrlPasswordSet&Get", "TestCase1", TC_PASS, "ok");
test_passed_password = true;
} else {