[sr-dev] git:master:7d52bf6c: cdp: fix two errors from coverty scan (missing check, var initialization)