fix warning ('rc' may be used uninitialized in this function)