another WIZKIT fix

previous rev put the new "else" in the wrong place
This commit is contained in:
cohrs
2002-01-23 18:23:54 +00:00
parent 4b677185de
commit 1a7aa0933e

View File

@@ -1640,9 +1640,9 @@ fopen_wizkit_file()
envp = nh_getenv("HOME");
if (envp)
Sprintf(tmp_wizkit, "%s/%s", envp, wizkit);
else Strcpy(tmp_wizkit, wizkit);
if ((fp = fopenp(tmp_wizkit, "r")) != (FILE *)0)
return(fp);
else Strcpy(tmp_wizkit, wizkit);
else if (errno != ENOENT) {
/* e.g., problems when setuid NetHack can't search home
* directory restricted to user */