- when an error occurred and errno is set appropriately - when the variable is undefined. Thanks to Guy Harris for pointing this out.