]> granicus.if.org Git - nethack/commitdiff
Fix #H4014: still crashing on MacOS 10.11
authorJean-Christophe Collet <jccollet@gmail.com>
Fri, 11 Dec 2015 16:02:28 +0000 (17:02 +0100)
committerJean-Christophe Collet <jccollet@gmail.com>
Fri, 11 Dec 2015 16:02:28 +0000 (17:02 +0100)
doc/fixes36.1
src/files.c

index 87fa716845e7095d4c6a7845d845376893aeff47..b682a6c2567d25976f814b1f2a52ea2d27a07a17 100644 (file)
@@ -12,7 +12,7 @@ looking at distant objects while wearing the Eyes of the Overworld made their
 message when cursed wand zapped by a monster happens to explode was suppressed
        if hero was deaf, even though that message has no audible component
 support explicit 'symset:default' and 'symset:Default symbols' in options
-
+Crash during startup if player name set as 'player' in defaults
 
 Platform- and/or Interface-Specific Fixes
 -----------------------------------------
@@ -40,4 +40,3 @@ NetHack Community Patches (or Variation) Included
 
 Code Cleanup and Reorganization
 -------------------------------
-
index 58691c1851229ecf5e45e20836906baaf12bba1f..2090424597f8267e468540786e85803021b61e60 100644 (file)
@@ -2139,8 +2139,6 @@ int src;
         ++bufp; /* skip '='; parseoptions() handles spaces */
 
         parseoptions(bufp, TRUE, TRUE);
-        if (plname[0])      /* If a name was given */
-            plnamesuffix(); /* set the character class */
     } else if (match_varname(buf, "AUTOPICKUP_EXCEPTION", 5)) {
         add_autopickup_exception(bufp);
     } else if (match_varname(buf, "MSGTYPE", 7)) {
@@ -2215,7 +2213,6 @@ int src;
 
     } else if (match_varname(buf, "NAME", 4)) {
         (void) strncpy(plname, bufp, PL_NSIZ - 1);
-        plnamesuffix();
     } else if (match_varname(buf, "ROLE", 4)
                || match_varname(buf, "CHARACTER", 4)) {
         if ((len = str2role(bufp)) >= 0)