[epiphany/pgriffis/web-extension/runtime-send-message: 15/15] WebExtensions: Fix missing default value on autofree




commit 5226aec6bdb364e629d859ba035a0e8e71d2405b
Author: Patrick Griffis <pgriffis igalia com>
Date:   Thu Jun 2 13:42:43 2022 -0500

    WebExtensions: Fix missing default value on autofree
    
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1122>

 embed/web-process-extension/ephy-webextension-api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/web-process-extension/ephy-webextension-api.c 
b/embed/web-process-extension/ephy-webextension-api.c
index a9f4d0261..d8350fdc6 100644
--- a/embed/web-process-extension/ephy-webextension-api.c
+++ b/embed/web-process-extension/ephy-webextension-api.c
@@ -206,7 +206,7 @@ ephy_send_message (const char *function_name,
   EphyWebExtensionExtension *extension = ephy_web_extension_extension_get ();
   guint page_id = GPOINTER_TO_UINT (user_data);
   WebKitUserMessage *message;
-  g_autofree char *args_json;
+  g_autofree char *args_json = NULL;
 
   if (!jsc_value_is_function (reject_callback))
     return; /* Can't reject in this case. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]