cppcheck: reduce scope in ctredlin.cxx

Change-Id: I7bdbea6bfadf0f2ce5e3ecb4803929797ebf7af2