bcfa9e3
Coverity Fix issue 12777 Bug Description: incorrectly used var r instead of rc cherry-picked from ef4e3171c308cec2ca36e02cbc16d0f8da056a64