This is fine, but actually not critical since the very next line of the function immediately overwrites the value in the error variable.