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 d0753e2  Adds assert, albeit not needed, makes CA happy
d0753e2 is described below

commit d0753e21cd76d85ef4a9d3cb9da540edcbe3c2be
Author: Leif Hedstrom <[email protected]>
AuthorDate: Thu Apr 25 11:36:55 2019 +0800

    Adds assert, albeit not needed, makes CA happy
---
 mgmt/utils/MgmtMarshall.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mgmt/utils/MgmtMarshall.cc b/mgmt/utils/MgmtMarshall.cc
index eb23586..35263c3 100644
--- a/mgmt/utils/MgmtMarshall.cc
+++ b/mgmt/utils/MgmtMarshall.cc
@@ -42,6 +42,7 @@ data_is_nul_terminated(const MgmtMarshallData *data)
 {
   const char *str = (const char *)(data->ptr);
 
+  ink_assert(str);
   if (str[data->len - 1] != '\0') {
     return false;
   }

Reply via email to