diff options
Diffstat (limited to 'lib/libc/stdio/ftell.c')
-rw-r--r-- | lib/libc/stdio/ftell.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/ftell.c b/lib/libc/stdio/ftell.c index 974b484..93f1f9e 100644 --- a/lib/libc/stdio/ftell.c +++ b/lib/libc/stdio/ftell.c @@ -121,10 +121,10 @@ get_real_pos: fp->_r += pos; pos = 0; } else { - if (spos == -1) - goto get_real_pos; fp->_p = fp->_bf._base; fp->_r = 0; + if (spos == -1) + goto get_real_pos; pos = spos; } } @@ -136,11 +136,11 @@ get_real_pos: fp->_r += pos; pos = 0; } else { - if (spos == -1) - goto get_real_pos; fp->_p = fp->_bf._base; fp->_r = 0; FREEUB(fp); + if (spos == -1) + goto get_real_pos; pos = spos; } } |