Added fixes for Coverity bugs 1147764, 1147765 and 1147766.
rc was possibly used uninitialized in each of these cases.
TRQ-2424