Coverity CID 580: fix 'c' handling to match 'x' ('c' used the wrong variable)
This commit is contained in:
parent
c8780d3168
commit
ee43724903
|
@ -1,11 +1,11 @@
|
|||
/* $NetBSD: strftime.c,v 1.16 2004/05/12 23:03:11 kleink Exp $ */
|
||||
/* $NetBSD: strftime.c,v 1.17 2006/03/22 00:11:28 christos Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
#if 0
|
||||
static char elsieid[] = "@(#)strftime.c 7.64";
|
||||
#else
|
||||
__RCSID("$NetBSD: strftime.c,v 1.16 2004/05/12 23:03:11 kleink Exp $");
|
||||
__RCSID("$NetBSD: strftime.c,v 1.17 2006/03/22 00:11:28 christos Exp $");
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
|
@ -181,7 +181,7 @@ label:
|
|||
{
|
||||
int warn2 = IN_SOME;
|
||||
|
||||
pt = _fmt(Locale->d_t_fmt, t, pt, ptlim, warnp);
|
||||
pt = _fmt(Locale->d_t_fmt, t, pt, ptlim, &warn2);
|
||||
if (warn2 == IN_ALL)
|
||||
warn2 = IN_THIS;
|
||||
if (warn2 > *warnp)
|
||||
|
|
Loading…
Reference in New Issue