/* XXX Use quick-and-dirty hashing algo */
- for(sum = 0; callid.len > 0; callid.len--)
- sum += callid.s[callid.len - 1];
+ for(i = 0; i < callid.len; i++)
+ sum += callid.s[i];
"sum" is used uninitialized here
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/390/files#r44549819