
The variable num_read was beeing used without beeing initialized. Also, clean up the function return path and make sure va_end() is beeing called.
The variable num_read was beeing used without beeing initialized. Also, clean up the function return path and make sure va_end() is beeing called.