[vlc-devel] [PATCH] npapi: zero NPClass before using.
jb at videolan.org
Thu Dec 1 10:08:24 CET 2011
On Thu, Dec 01, 2011 at 04:06:35PM +0700, Sergey Radionov wrote :
> 2011/12/1 Jean-Baptiste Kempf <jb at videolan.org>
> > On Thu, Dec 01, 2011 at 09:13:06AM +0700, Sergey Radionov wrote :
> > >
> > Wouldn't setting the unset parameters to NULL be faster, and more
> > elegant?
> Maybe, but I am take care about possible future adding of new members to
> this struct.
The probability of extension of NPClass is quite low...
> But I am not insist. So what you say, should I replace it with simple
Well, seeing the doc and the headers, almost all members are init'd, but
a few ones. Setting them as NULL might be enough (and maybe not, so this
approach would be needed).
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
More information about the vlc-devel