I don't see reason to not reuse tmp variable. It helps with reading as you then quickly recognize, that it have only short scope.