Make source cleah with cppcheck, except for mpc and sasl

This commit is contained in:
RichardHitt
2013-01-09 14:37:57 -08:00
parent 285ddd0b60
commit 6beef589e3
11 changed files with 27 additions and 10 deletions

View File

@@ -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 */