* gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.

From-SVN: r55119
This commit is contained in:
Kaveh R. Ghazi 2002-06-30 12:14:15 +00:00 committed by Kaveh Ghazi
parent 76147cce13
commit 1ef7d32b91
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
2002-06-30 Alan Modra <amodra@bigpond.net.au>
* unroll.c (loop_iterations): Handle EQ loops.

View File

@ -586,7 +586,6 @@ oprintf VPARAMS ((outf_p o, const char *format, ...))
VA_FIXEDARG (ap, outf_p, o);
VA_FIXEDARG (ap, const char *, format);
slength = xvasprintf (&s, format, ap);
VA_CLOSE (ap);
if (o->bufused + slength > o->buflength)
{
@ -602,6 +601,7 @@ oprintf VPARAMS ((outf_p o, const char *format, ...))
memcpy (o->buf + o->bufused, s, slength);
o->bufused += slength;
free (s);
VA_CLOSE (ap);
}
/* Open the global header file and the language-specific header files. */