diff options
-rw-r--r-- | webkit/glue/plugins/webplugin_delegate_impl_gtk.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc b/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc index 3e4f607..2f0948b 100644 --- a/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc +++ b/webkit/glue/plugins/webplugin_delegate_impl_gtk.cc @@ -116,9 +116,9 @@ bool WebPluginDelegateImpl::WindowedCreatePlugin() { DCHECK(!windowed_handle_); DCHECK(!plug_); - // NPP_GetValue() will write 4 bytes of data to this variable. Don't use a - // single byte bool, use an int instead. - int xembed; + // NPP_GetValue() might write 4 bytes of data to this variable. Don't use a + // single byte bool, use an int instead and make sure it is initialized. + int xembed = 0; NPError err = instance_->NPP_GetValue(NPPVpluginNeedsXEmbed, &xembed); if (err != NPERR_NO_ERROR || !xembed) { NOTIMPLEMENTED() << " windowed plugin but without xembed."; |