A small bug fix for the tee command ...

This commit is contained in:
unknown 2002-08-27 16:01:25 +03:00
parent f3a076d4f8
commit 3302bb6295

View file

@ -1855,7 +1855,7 @@ com_tee(String *buffer, char *line __attribute__((unused)))
while (end > file_name && (isspace(end[-1]) || iscntrl(end[-1])))
end--;
end[0]= 0;
if (!strlen(outfile))
if (!strlen(file_name))
{
printf("No outfile specified!\n");
return 0;