Skip to content

Commit

Permalink
fixed fprintf in getline
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePrimeJnr committed Jul 26, 2023
1 parent 1a68134 commit b567bfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _getline.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ ssize_t _getline(char **line)
return (-1);
}
else
{
if (isatty(0))
_fprintf(1, "\n", "nill", 0, "nill");
exit(status);
}
}

0 comments on commit b567bfe

Please sign in to comment.