This is an automated email from the ASF dual-hosted git repository.
masaori 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 d54fc14 Fixed clang-analyzer issue with null pointer in URL
d54fc14 is described below
commit d54fc14934258cf2c3412f72d8a0a609b91e962c
Author: Bryan Call <[email protected]>
AuthorDate: Mon May 21 12:46:20 2018 -0700
Fixed clang-analyzer issue with null pointer in URL
---
proxy/hdrs/URL.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/hdrs/URL.h b/proxy/hdrs/URL.h
index c2bb0f9..44b3929 100644
--- a/proxy/hdrs/URL.h
+++ b/proxy/hdrs/URL.h
@@ -329,7 +329,7 @@ URL::create(HdrHeap *heap)
inline void
URL::copy(const URL *url)
{
- ink_assert(url->valid());
+ ink_assert(url != nullptr && url->valid());
url_copy_onto(url->m_url_impl, url->m_heap, m_url_impl, m_heap);
}
--
To stop receiving notification emails like this one, please contact
[email protected].