diff options
Diffstat (limited to 'libio/filedoalloc.c')
-rw-r--r-- | libio/filedoalloc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libio/filedoalloc.c b/libio/filedoalloc.c index eee489b825..f36bfb3e32 100644 --- a/libio/filedoalloc.c +++ b/libio/filedoalloc.c @@ -98,9 +98,7 @@ DEFUN(_IO_file_doallocate, (fp), size = _IO_BUFSIZ; #endif } - p = ALLOC_BUF(size); - if (p == NULL) - return EOF; + ALLOC_BUF(p, size, EOF); _IO_setb(fp, p, p+size, 1); if (couldbetty && __isatty (fp->_fileno)) fp->_flags |= _IO_LINE_BUF; |