* Code cleanup.

This commit is contained in:
Paul Smith 1999-08-19 04:43:46 +00:00
parent cbb9e38d10
commit 4ff6c62456
2 changed files with 38 additions and 37 deletions

5
job.c
View file

@ -891,8 +891,9 @@ start_job_command (child)
#else
(argv[0] && !strcmp (argv[0], "/bin/sh"))
#endif
&& (argv[1] && !strcmp(argv[1], "-c"))
&& (argv[2] && !strcmp(argv[2], ":"))
&& (argv[1]
&& argv[1][0] == '-' && argv[1][1] == 'c' && argv[1][2] == '\0')
&& (argv[2] && argv[2][0] == ':' && argv[2][1] == '\0')
&& argv[3] == NULL)
{
free (argv[0]);