From 11454114e0728c248c18db790924af0aa5e33c52 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Fri, 26 Feb 2016 22:32:28 +0800 Subject: [PATCH] Don't initialize function pointers with G_TYPE_INVALID https://bugs.freedesktop.org/show_bug.cgi?id=94310 --- src/mcd-account-manager.c | 2 +- src/mcd-account.c | 2 +- src/mcd-dispatch-operation.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mcd-account-manager.c b/src/mcd-account-manager.c index 57296cd..8584308 100644 --- a/src/mcd-account-manager.c +++ b/src/mcd-account-manager.c @@ -77,7 +77,7 @@ static const McdInterfaceData account_manager_interfaces[] = { MCD_IMPLEMENT_IFACE (mc_svc_account_manager_interface_hidden_get_type, account_manager_hidden, MC_IFACE_ACCOUNT_MANAGER_INTERFACE_HIDDEN), - { G_TYPE_INVALID, } + { NULL, } }; G_DEFINE_TYPE_WITH_CODE (McdAccountManager, mcd_account_manager, G_TYPE_OBJECT, diff --git a/src/mcd-account.c b/src/mcd-account.c index 1ed237b..e7f5007 100644 --- a/src/mcd-account.c +++ b/src/mcd-account.c @@ -98,7 +98,7 @@ static const McdInterfaceData account_interfaces[] = { account_external_password_storage, MC_IFACE_ACCOUNT_INTERFACE_EXTERNAL_PASSWORD_STORAGE), - { G_TYPE_INVALID, } + { NULL, } }; G_DEFINE_TYPE_WITH_CODE (McdAccount, mcd_account, G_TYPE_OBJECT, diff --git a/src/mcd-dispatch-operation.c b/src/mcd-dispatch-operation.c index 8df17cb..0f2850f 100644 --- a/src/mcd-dispatch-operation.c +++ b/src/mcd-dispatch-operation.c @@ -58,7 +58,7 @@ static const McdInterfaceData dispatch_operation_interfaces[] = { MCD_IMPLEMENT_IFACE (tp_svc_channel_dispatch_operation_get_type, dispatch_operation, TP_IFACE_CHANNEL_DISPATCH_OPERATION), - { G_TYPE_INVALID, } + { NULL, } }; G_DEFINE_TYPE_WITH_CODE (McdDispatchOperation, _mcd_dispatch_operation, -- 2.7.2