mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-05 19:15:32 +00:00
notifier: Fix compile warning
Fixes ../src/calls-notifier.c: In function ‘state_changed_cb’: /usr/include/glib-2.0/glib/gmacros.h:1132:17: warning: ‘notification’ may be used uninitialized in this function [-Wmaybe-uninitialized] which wasn't problematic with the current code flow but can easily become a problem when shuffling stuff around.
This commit is contained in:
parent
994853910d
commit
97c2dde0eb
1 changed files with 1 additions and 3 deletions
|
@ -43,15 +43,13 @@ static void
|
||||||
notify (CallsNotifier *self, CallsCall *call)
|
notify (CallsNotifier *self, CallsCall *call)
|
||||||
{
|
{
|
||||||
GApplication *app = g_application_get_default ();
|
GApplication *app = g_application_get_default ();
|
||||||
g_autoptr (GNotification) notification;
|
g_autoptr (GNotification) notification = g_notification_new (_("Missed call"));
|
||||||
g_autoptr (CallsBestMatch) contact = NULL;
|
g_autoptr (CallsBestMatch) contact = NULL;
|
||||||
g_autofree gchar *msg = NULL;
|
g_autofree gchar *msg = NULL;
|
||||||
g_autofree gchar *ref = NULL;
|
g_autofree gchar *ref = NULL;
|
||||||
g_autofree gchar *label_callback = NULL;
|
g_autofree gchar *label_callback = NULL;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
notification = g_notification_new (_("Missed call"));
|
|
||||||
|
|
||||||
contact = calls_call_get_contact (call);
|
contact = calls_call_get_contact (call);
|
||||||
// TODO: We need to update the notification when the contact name changes
|
// TODO: We need to update the notification when the contact name changes
|
||||||
name = calls_best_match_get_name (contact);
|
name = calls_best_match_get_name (contact);
|
||||||
|
|
Loading…
Reference in a new issue