aboutsummaryrefslogtreecommitdiff
path: root/plugins/mm-plugin-longcheer.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mm-plugin-longcheer.c')
-rw-r--r--plugins/mm-plugin-longcheer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mm-plugin-longcheer.c b/plugins/mm-plugin-longcheer.c
index 5f773a3..89a6138 100644
--- a/plugins/mm-plugin-longcheer.c
+++ b/plugins/mm-plugin-longcheer.c
@@ -72,12 +72,13 @@ custom_init_response_cb (MMPluginBaseSupportsTask *task,
guint32 *out_level,
gpointer user_data)
{
- const char *p = response->str;
+ const char *p;
if (error)
return tries <= 4 ? TRUE : FALSE;
/* Note the lack of a ':' on the GMR; the X200 doesn't send one */
+ g_assert (response);
p = mm_strip_tag (response->str, "AT+GMR");
if (*p == 'L') {
/* X200 modems have a GMR firmware revision that starts with 'L', and