mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(xwrite): Remove assertion that size_t N >= 0.
This commit is contained in:
1 parent
f7eb4c8913
commit
4bdaed5ff4
1 file changed
-1
@@ -323,7 +323,6 @@ static void
|
||||
xwrite (int fd, char *const buffer, size_t n_bytes)
|
||||
{
|
||||
assert (fd == STDOUT_FILENO);
|
||||
assert (n_bytes >= 0);
|
||||
if (n_bytes > 0 && fwrite (buffer, 1, n_bytes, stdout) == 0)
|
||||
error (EXIT_FAILURE, errno, _("write error"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user