mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Make source cleah with cppcheck, except for mpc and sasl
This commit is contained in:
@@ -1866,7 +1866,6 @@ cmd_exec (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
||||
/* not reached unless error */
|
||||
/*printf("exec error\n");*/
|
||||
fflush (stdout);
|
||||
fflush (stdin);
|
||||
_exit (0);
|
||||
}
|
||||
if (pid == -1)
|
||||
@@ -1876,6 +1875,7 @@ cmd_exec (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
||||
PrintText (sess, "Error in fork(2)\n");
|
||||
close(fds[0]);
|
||||
close(fds[1]);
|
||||
free (s);
|
||||
} else
|
||||
{
|
||||
/* Parent path */
|
||||
|
||||
Reference in New Issue
Block a user