PATCH: clone: minor style issue

Mikael Magnusson <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <[email protected]>
---
 Src/Modules/clone.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Src/Modules/clone.c b/Src/Modules/clone.c
index 4b26555050..db6d4b401d 100644
--- a/Src/Modules/clone.c
+++ b/Src/Modules/clone.c
@@ -60,9 +60,9 @@ bin_clone(char *nam, char **args, UNUSED(Options ops), UNUSED(int func))
 	if (setsid() != mypid)
 	    zwarnnam(nam, "failed to create new session: %e", errno);
 #elif defined(TIOCNOTTY)
-	    if (ioctl(SHTTY, TIOCNOTTY, 0))
-	    zwarnnam(*args, "%e", errno);
-	    setpgrp(0L, mypid);
+	if (ioctl(SHTTY, TIOCNOTTY, 0))
+	    zwarnnam(nam, "%e", errno);
+	setpgrp(0L, mypid);
 #endif
 	dup2(ttyfd,0);
 	dup2(ttyfd,1);
-- 
2.38.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.