From 472f293b8480fec294a8170a7d927475cdec27bf Mon Sep 17 00:00:00 2001 From: PatR Date: Thu, 17 Nov 2022 13:19:19 -0800 Subject: [PATCH] more nethack -s For Unix, set plname[] to the default value (player's username) before running prscore() for 'nethack -s'. Avoids reference to mysterious "hackplayer" if no entries are found. --- sys/unix/unixmain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/unix/unixmain.c b/sys/unix/unixmain.c index 5900a3e88..6cdf30c94 100644 --- a/sys/unix/unixmain.c +++ b/sys/unix/unixmain.c @@ -731,6 +731,7 @@ scores_only(int argc, char **argv, const char *dir) panictrace_setsignals(TRUE); #endif #endif + (void) whoami(); /* set up default plname[] */ prscore(argc, argv);