[sr-dev] [kamailio/kamailio] cdp: initializing a variable to 0 and checking a return ptr for null (#719)