Github user zwoop commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/1325#discussion_r96107247
  
    --- Diff: lib/records/RecUtils.cc ---
    @@ -419,7 +419,7 @@ RecDataSetFromString(RecDataT data_type, RecData 
*data_dst, const char *data_str
         data_src.rec_float = atof(data_string);
         break;
       case RECD_STRING:
    -    if (data_string && strcmp((data_string), "nullptr") == 0) {
    +    if (data_string && (strlen(data_string) == 4) && 
strncmp((data_string), "NULL", 4) == 0) {
    --- End diff --
    
    Because amc wanted me to use strncmp(), so if you don't check the length, 
then it'd also match  any string starting with NULL.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to