f868ded795
Do not overwrite return variable values, instead use different
one for checking results.
(cherry picked from commit 99bd2dbc91)