diff options
author | delphij <delphij@FreeBSD.org> | 2008-10-30 00:19:19 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2008-10-30 00:19:19 +0000 |
commit | 5f78e537d9eb5f9b04ad7ff8b30758c3e9aae367 (patch) | |
tree | 6b2b17e1c4306aa3263c7e2fddc74e61915333fc | |
parent | dcbe57056a9b41f3ef27038ccbf1497e66e52f17 (diff) | |
download | FreeBSD-src-5f78e537d9eb5f9b04ad7ff8b30758c3e9aae367.zip FreeBSD-src-5f78e537d9eb5f9b04ad7ff8b30758c3e9aae367.tar.gz |
Pass a pointer to warn2 so the warn2 == IN_ALL would not be an
always-false condition.
-rw-r--r-- | lib/libc/stdtime/strftime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c index 3f66ea2..b0ba1ff 100644 --- a/lib/libc/stdtime/strftime.c +++ b/lib/libc/stdtime/strftime.c @@ -177,7 +177,7 @@ label: { int warn2 = IN_SOME; - pt = _fmt(tptr->c_fmt, t, pt, ptlim, warnp); + pt = _fmt(tptr->c_fmt, t, pt, ptlim, &warn2); if (warn2 == IN_ALL) warn2 = IN_THIS; if (warn2 > *warnp) |