Fixed crash on getlogin() returning NULL.