Skip to content

Commit

Permalink
Move variable declaration down a bit
Browse files Browse the repository at this point in the history
Just to refactor a little.
  • Loading branch information
davidben committed May 18, 2011
1 parent c7c9aa3 commit f136c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npw-wrapper.c
Expand Up @@ -3613,7 +3613,6 @@ NP_Initialize(NPNetscapeFuncs *moz_funcs, NPPluginFuncs *plugin_funcs)
{
D(bug("NP_Initialize\n"));

static NPPluginFuncs full_plugin_funcs;
if (moz_funcs == NULL || plugin_funcs == NULL)
return NPERR_INVALID_FUNCTABLE_ERROR;

Expand All @@ -3634,6 +3633,7 @@ NP_Initialize(NPNetscapeFuncs *moz_funcs, NPPluginFuncs *plugin_funcs)
// copy mozilla_funcs table here as plugin_init() will need it
memcpy(&mozilla_funcs, moz_funcs, MIN(moz_funcs->size, sizeof(mozilla_funcs)));

static NPPluginFuncs full_plugin_funcs;
memset(&full_plugin_funcs, 0, sizeof(full_plugin_funcs));
full_plugin_funcs.size = sizeof(NPPluginFuncs);
full_plugin_funcs.version = NPW_NPAPI_VERSION;
Expand Down

0 comments on commit f136c8b

Please sign in to comment.