From: cohrs Date: Wed, 23 Jan 2002 18:23:54 +0000 (+0000) Subject: another WIZKIT fix X-Git-Tag: MOVE2GIT~3369 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a7aa0933ea5c3902b9e565666e0eca1f3f57b8a;p=nethack another WIZKIT fix previous rev put the new "else" in the wrong place --- diff --git a/src/files.c b/src/files.c index c0aecd561..9bfd507d5 100644 --- a/src/files.c +++ b/src/files.c @@ -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 */