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 2018/05/08 16:16:24 UTC
[trafficserver] branch master updated: Clang6: Fix garbage return
value in CacheTool.cc.
This is an automated email from the ASF dual-hosted git repository.
amc 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 91cef69 Clang6: Fix garbage return value in CacheTool.cc.
91cef69 is described below
commit 91cef69e1c85c9f4fa7885686e0500a29460e4ed
Author: Alan M. Carroll <am...@apache.org>
AuthorDate: Tue May 8 10:18:08 2018 -0500
Clang6: Fix garbage return value in CacheTool.cc.
---
cmd/traffic_cache_tool/CacheTool.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/traffic_cache_tool/CacheTool.cc b/cmd/traffic_cache_tool/CacheTool.cc
index c80e6a7..6602f71 100644
--- a/cmd/traffic_cache_tool/CacheTool.cc
+++ b/cmd/traffic_cache_tool/CacheTool.cc
@@ -723,7 +723,7 @@ Span::loadDevice()
ats_scoped_fd fd{_path.open(flags)};
- if (fd) {
+ if (fd != ts::NO_FD) {
if (ink_file_get_geometry(fd, _geometry)) {
off_t offset = ts::CacheSpan::OFFSET;
CacheStoreBlocks span_hdr_size(1); // default.
--
To stop receiving notification emails like this one, please contact
amc@apache.org.