[sr-dev] git:master:e575d681: cdp: initializing a variable to 0 and checking a return ptr for null to prevent crashes