[nautilus] clipboard: Initialize g_autofree variable to NULL



commit 2083bd0eca2e40c9afb1367be1a73e27624548c8
Author: Corey Berla <corey berla me>
Date:   Mon Jun 13 11:14:12 2022 -0700

    clipboard: Initialize g_autofree variable to NULL

 src/nautilus-clipboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-clipboard.c b/src/nautilus-clipboard.c
index 9c8ec4d48..03bb7263f 100644
--- a/src/nautilus-clipboard.c
+++ b/src/nautilus-clipboard.c
@@ -152,7 +152,7 @@ static void
 nautilus_clipboard_serialize (GdkContentSerializer *serializer)
 {
     NautilusClipboard *clip;
-    g_autofree gchar *str;
+    g_autofree gchar *str = NULL;
     g_autoptr (GError) error = NULL;
 
     clip = g_value_get_boxed (gdk_content_serializer_get_value (serializer));


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