r >= 0? Looks like a valid value according to the man page.