miconda commented on this pull request.


> @@ -1672,6 +1672,7 @@ static inline int update_contact_db(ucontact_t* _c)
  */
 int update_ucontact(struct urecord* _r, ucontact_t* _c, ucontact_info_t* _ci)
 {
+       static struct urecord _ur;

I don't see a reason to declare the variable _ur static here or in the other 
cases of the patch. It does not seem to be used outside of the function, so it 
can be declared locally (on the stack).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1000#pullrequestreview-23147003
_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to