1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Silence maybe initialized warning in pager.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-02-04 18:56:10 +01:00
parent bb70eef85b
commit e76d4a90c5

View file

@ -298,7 +298,7 @@ void pager_push_fd(struct pager* pager, int fd, const char* fdpath)
if ( !pager->out_fd_tty )
return pager_simple_output_fd(pager, fd, fdpath);
unsigned char buffer[4096];
ssize_t in_amount;
ssize_t in_amount = 0;
while ( !pager->quiting &&
0 < (in_amount = read(fd, buffer, sizeof(buffer))) )
{