mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
browser-plugin: Fix callback for "onchange"
In the case that calling the listener fails, "result" may be uninitialized. Sending NPAPI uninitialized memory is never a good idea. https://bugzilla.gnome.org/show_bug.cgi?id=668517
This commit is contained in:
parent
3bcdba6e1d
commit
15563444cf
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ on_shell_signal (GDBusProxy *proxy,
|
|||
gint32 status;
|
||||
gchar *error;
|
||||
NPVariant args[3];
|
||||
NPVariant result;
|
||||
NPVariant result = { NPVariantType_Void };
|
||||
|
||||
g_variant_get (parameters, "(sis)", &uuid, &status, &error);
|
||||
STRINGZ_TO_NPVARIANT (uuid, args[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue