]> granicus.if.org Git - nethack/commit
fix bug1
authornhmall <nhmall@nethack.org>
Mon, 13 Jan 2020 19:54:48 +0000 (14:54 -0500)
committernhmall <nhmall@nethack.org>
Mon, 13 Jan 2020 19:54:48 +0000 (14:54 -0500)
commit5b0f3ae7bf9775faa00221b067449e849d11c8ea
tree417f95fcf01aee1fc8a25e1a91bbc2eb7c85e631
parentbb715bc824abd96106bc8f33e6a36fb166fb52e4
fix bug1

have string_for_opt() return the value string or empty_optstr to
provide some level of crash protection if some future added option
processing misbehaves. Callers of string_for_opt() and
string_for_env_opt() should always check for a match to empty_optstr.
src/nhdat364 [new file with mode: 0644]
src/options.c