Initialize g_autoptr variables
Compiler claims from the master branch at commit 537dc040:
../src/libbiji/biji-manager.c: In function ‘load_goa_provider’:
../src/libbiji/biji-manager.c:199:9: warning: ‘goa_account_get_documents_disabled’ is deprecated [-Wdeprecated-declarations]
199 | !goa_account_get_documents_disabled (account))
| ^
In file included from /usr/include/goa-1.0/goa/goaclient.h:27,
from /usr/include/goa-1.0/goa/goa.h:27,
from ../src/libbiji/biji-manager.h:14,
from ../src/libbiji/libbiji.h:25,
from ../src/libbiji/biji-manager.c:23:
/usr/include/goa-1.0/goa/goa-generated.h:193:28: note: declared here
193 | G_GNUC_DEPRECATED gboolean goa_account_get_documents_disabled (GoaAccount *object);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/gtk-3.0/gdk/gdkconfig.h:8,
from /usr/include/gtk-3.0/gdk/gdk.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:30,
from ../src/libbiji/biji-manager.c:20:
/usr/include/glib-2.0/glib/gmacros.h: In function ‘load_providers’:
/usr/include/glib-2.0/glib/gmacros.h:1212:17: warning: ‘registry’ may be used uninitialized [-Wmaybe-uninitialized]
1212 | { if (_ptr) (cleanup) ((ParentName *) _ptr); } \
| ^
../src/libbiji/biji-manager.c:223:30: note: ‘registry’ was declared here
223 | g_autoptr(ESourceRegistry) registry;
| ^~~~~~~~
/usr/include/glib-2.0/glib/gmacros.h:1212:17: warning: ‘client’ may be used uninitialized [-Wmaybe-uninitialized]
1212 | { if (_ptr) (cleanup) ((ParentName *) _ptr); } \
| ^
../src/libbiji/biji-manager.c:175:24: note: ‘client’ was declared here
175 | g_autoptr(GoaClient) client;
| ^~~~~~
In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/glib-2.0/gobject/gbinding.h:28,
from /usr/include/glib-2.0/glib-object.h:22,
from ../src/libbiji/biji-date-time.h:19,
from ../src/libbiji/libbiji.h:23,
from ../src/bjb-share.h:20,
from ../src/bjb-share.c:18:
/usr/include/glib-2.0/glib/gmacros.h: In function ‘on_email_note_callback’:
/usr/include/glib-2.0/glib/gmacros.h:1212:10: warning: ‘proxy’ may be used uninitialized [-Wmaybe-uninitialized]
1212 | { if (_ptr) (cleanup) ((ParentName *) _ptr); } \
| ^
../src/bjb-share.c:36:25: note: ‘proxy’ was declared here
36 | g_autoptr(GDBusProxy) proxy;
| ^~~~~
In file included from /usr/include/glib-2.0/glib.h:114:
In function ‘g_autoptr_cleanup_generic_gfree’,
inlined from ‘on_email_note_callback’ at ../src/bjb-share.c:35:21:
/usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: warning: ‘text_mail’ may be used uninitialized [-Wmaybe-uninitialized]
28 | g_free (*pp);
| ^~~~~~~~~~~~
../src/bjb-share.c: In function ‘on_email_note_callback’:
../src/bjb-share.c:35:21: note: ‘text_mail’ was declared here
35 | g_autofree gchar *text_mail;
| ^~~~~~~~~
In function ‘g_autoptr_cleanup_generic_gfree’,
inlined from ‘on_email_note_callback’ at ../src/bjb-share.c:34:21:
/usr/include/glib-2.0/glib/glib-autocleanups.h:28:3: warning: ‘title_mail’ may be used uninitialized [-Wmaybe-uninitialized]
28 | g_free (*pp);
| ^~~~~~~~~~~~
../src/bjb-share.c: In function ‘on_email_note_callback’:
../src/bjb-share.c:34:21: note: ‘title_mail’ was declared here
34 | g_autofree gchar *title_mail;
| ^~~~~~~~~~