ganeshmurthy commented on a change in pull request #541: DISPATCH-1389: 
optimize the STATE_IN_BODY codepath in qd_iterator_octet
URL: https://github.com/apache/qpid-dispatch/pull/541#discussion_r305884459
 
 

 ##########
 File path: src/iterator.c
 ##########
 @@ -555,8 +555,33 @@ void qd_iterator_annotate_space(qd_iterator_t *iter, 
const char* space, int spac
 
 unsigned char qd_iterator_octet(qd_iterator_t *iter)
 {
-    if (!iter)
-        return 0;
+    assert(iter);
 
 Review comment:
   It is good to add this assert but can we still keep this line ?
       if (!iter)
           return 0;
   
   It saves the router from a crash in production environment 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to