On Sun, Jul 21, 2002 at 01:17:49PM +0200, Michel D�nzer wrote:
> 
> Can a varargs-savvy developer with spare time please have a look at bug
> #152512?

You're right.  Using a va_list after it has been passed to a function
which uses it has undefined behaviour, IIRC.  You probably want to call
va_copy, pass the copy to the child function, and then (to be
technically correct) va_end it in the caller.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to