summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/ftell.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-08-31 18:54:44 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-08-31 18:54:44 +0000
commit7cf30ace8422d718f3823fcdecf7fc5a2fd67772 (patch)
tree5bc19ece8bc6ab760c3510c344d99fc3a3f77d6c /lib/libc/stdio/ftell.c
parent2ff678f5bb48d68e0635f3986a9068e72289c919 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/ftell.c')
-rw-r--r--lib/libc/stdio/ftell.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/ftell.c b/lib/libc/stdio/ftell.c
index 974b484e6105..93f1f9ea27be 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;
}
}