From 5f78e537d9eb5f9b04ad7ff8b30758c3e9aae367 Mon Sep 17 00:00:00 2001 From: delphij Date: Thu, 30 Oct 2008 00:19:19 +0000 Subject: Pass a pointer to warn2 so the warn2 == IN_ALL would not be an always-false condition. --- lib/libc/stdtime/strftime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc/stdtime/strftime.c') 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) -- cgit v1.1