aboutsummaryrefslogtreecommitdiff
path: root/plugins/mm-plugin-x22x.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mm-plugin-x22x.c')
-rw-r--r--plugins/mm-plugin-x22x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mm-plugin-x22x.c b/plugins/mm-plugin-x22x.c
index 3be6731..a76a919 100644
--- a/plugins/mm-plugin-x22x.c
+++ b/plugins/mm-plugin-x22x.c
@@ -70,12 +70,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