[gnome-notes] share: Initialize g_autoptr variables with NULL



commit 88dcc486a74f2f32e63c25b9f1c483df583aeb2b
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Thu May 26 14:17:59 2022 +0530

    share: Initialize g_autoptr variables with NULL
    
    So as to silence compiler warnings
    
    Fixes #192

 src/bjb-share.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/bjb-share.c b/src/bjb-share.c
index afed7f5a..c59d133d 100644
--- a/src/bjb-share.c
+++ b/src/bjb-share.c
@@ -31,9 +31,9 @@ gboolean
 on_email_note_callback (BijiNoteObj *note)
 {
   GError *error = NULL;
-  g_autofree gchar *title_mail;
-  g_autofree gchar *text_mail;
-  g_autoptr(GDBusProxy) proxy;
+  g_autofree gchar *title_mail = NULL;
+  g_autofree gchar *text_mail = NULL;
+  g_autoptr(GDBusProxy) proxy = NULL;
   GVariantBuilder *arraybuilder;
   GVariant *dict;
 


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