[PATCH] iface-modem-messaging: fix invalid assert



BUG=chromium-os:38830
TEST=Send SMS to device

Change-Id: Ia7fd9bbf46722e11f87b2588efff6d1091ff7b72
---
 src/mm-iface-modem-messaging.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mm-iface-modem-messaging.c b/src/mm-iface-modem-messaging.c
index 0271d60..143d7ef 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);
 }
-- 
1.7.8.6



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