From 15563444cfd6407831033fcf0d0e21c249fa9ada Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 23 Jan 2012 20:57:03 -0500 Subject: [PATCH] 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 --- browser-plugin/browser-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser-plugin/browser-plugin.c b/browser-plugin/browser-plugin.c index bd10b7db2..da08a0576 100644 --- a/browser-plugin/browser-plugin.c +++ b/browser-plugin/browser-plugin.c @@ -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]);