another try at removing static analyzer complaints

The one in options hasn't been addressed this time.
This commit is contained in:
PatR
2026-05-15 13:40:34 -07:00
parent c558ef0b33
commit e11ff5f703
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -370,9 +370,6 @@ int
child(int wt)
{
int f;
#ifdef CHDIR
const char *home = getenv("HOME");
#endif
suspend_nhwindows((char *) 0); /* also calls end_screen() */
#ifdef _M_UNIX
@@ -382,6 +379,9 @@ child(int wt)
linux_mapon();
#endif
if ((f = fork()) == 0) { /* child */
#ifdef CHDIR
const char *home = getenv("HOME");
#endif
(void) setgid(getgid());
(void) setuid(getuid());
#ifdef CHDIR