diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-08-30 20:19:45 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-08-30 20:19:45 +0000 |
| commit | 77f71bc5aca018193a57bbb8d9fbcc53eb30ada1 (patch) | |
| tree | 1e3710e773c01ab41c7bad899a4da327ef84dea9 /lib/libc/stdio | |
| parent | e54bc118c1d1d7e62623b16ba072fc9e6e5a397e (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio')
| -rw-r--r-- | lib/libc/stdio/fseek.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c index a5a9f3050990..aa886d2d28ab 100644 --- a/lib/libc/stdio/fseek.c +++ b/lib/libc/stdio/fseek.c @@ -256,17 +256,13 @@ _fseeko(fp, offset, whence, ltest) fp->_p -= curoff; fp->_r += curoff; curoff = 0; - } else { - errno = EBADF; - return (-1); - } + } else + goto dumb; } if (HASUB(fp)) { curoff -= fp->_ur; - if (curoff < 0) { - errno = EBADF; - return (-1); - } + if (curoff < 0) + goto dumb; } } |
