From: "Lyndon Nerenberg (VE7TFX/VE6BBM)" Subject: Re: setenv(3) segfaults when value == NULL To: "Theo de Raadt" Cc: enh , tech@openbsd.org Date: Fri, 13 Mar 2026 17:44:42 -0700 Theo de Raadt writes: > Furthermore I disagree with this trend to "always return an error > vaue". > > An example is fclose(NULL). > > That crashes. It *SHOULD* crash, so that you can find and fix the bug. Well then you better change setenv() so it segfaults if name == NULL, too. Or *name = '\0'. It's a simple fix, just remove that if statement. Don't forget to update the man page. --lyndon