fix possible access to uninitialized memory in shgetc (via scanf)