Pass a pointer to warn2 so the warn2 == IN_ALL would not be an

always-false condition.
This commit is contained in:
delphij 2008-10-30 00:19:19 +00:00
parent dcbe57056a
commit 5f78e537d9

View File

@ -177,7 +177,7 @@ int * warnp;
{
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)