[vlc-devel] [PATCH] npapi: zero NPClass before using.

Jean-Baptiste Kempf jb at videolan.org
Thu Dec 1 09:57:28 CET 2011


On Wed, Nov 30, 2011 at 10:53:28PM -0500, Rafaël Carré wrote :
> > +    memset(static_cast<NPClass*>(this), 0, sizeof(NPClass));
> 
> Why is that needed, doesn't C++ have default constructors?
> 

NPClass, as its name says, is a struct.


-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list