aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2013-02-06 15:25:22 -0600
committerDan Williams <dcbw@redhat.com>2013-02-06 15:50:22 -0600
commit18436a8f77306bf3d5379881bcbd066018014858 (patch)
treeb38a8c5c7334cbc235cfd7be04a89f74b96347e0 /src
parentd44eb83ac425c0fa79c2cf76cf492c8223f2d268 (diff)
iface-modem-messaging: fix INSTANCE_CAST() vs. GET_INTERFACE() confusion
Yeah, GObject is pretty obscure here. But to get the implementation's override function, we want GET_INTERFACE, otherwise we're looking at some random memory location that's sometimes NULL. And then we crash.
Diffstat (limited to 'src')
-rw-r--r--src/mm-iface-modem-messaging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-iface-modem-messaging.c b/src/mm-iface-modem-messaging.c
index 0271d60d..143d7ef9 100644
--- a/src/mm-iface-modem-messaging.c
+++ b/src/mm-iface-modem-messaging.c
@@ -91,7 +91,7 @@ mm_iface_modem_messaging_bind_simple_status (MMIfaceModemMessaging *self,
MMSms *
mm_iface_modem_messaging_create_sms (MMIfaceModemMessaging *self)
{
- g_assert (MM_IFACE_MODEM_MESSAGING (self)->create_sms != NULL);
+ g_assert (MM_IFACE_MODEM_MESSAGING_GET_INTERFACE (self)->create_sms != NULL);
return MM_IFACE_MODEM_MESSAGING_GET_INTERFACE (self)->create_sms (self);
}