Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-10-29 14:06:42 +0300
committerCorinna Vinschen <corinna@vinschen.de>2014-10-29 14:06:42 +0300
commit28e1bd015974cc3a177343c2d7916fd6748ead0e (patch)
tree21d13041cbc844938ea2cda22f169f05e7d1c3cb /newlib/libc
parent5da7a22be0f2035da004c9f3a3dc228c575a526f (diff)
* libc/stdio/vfprintf.c (_VFPRINTF_R): Remove unnecessary comparison.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/stdio/vfprintf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index dd9c22a6d..5e6c61ca4 100644
--- a/newlib/libc/stdio/vfprintf.c
+++ b/newlib/libc/stdio/vfprintf.c
@@ -1521,11 +1521,9 @@ string:
*/
char *p = memchr (cp, 0, prec);
- if (p != NULL) {
+ if (p != NULL)
size = p - cp;
- if (size > prec)
- size = prec;
- } else
+ else
size = prec;
} else
size = strlen (cp);