diff options
author | Dan Williams <dcbw@redhat.com> | 2009-06-29 22:50:16 -0400 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2009-06-29 22:50:16 -0400 |
commit | 36ee982b61e5350d643cd7d8701d8f719b89509f (patch) | |
tree | 3f22260f42946f201e1e012065bf061491c89359 | |
parent | 78633192d2a02693f17df162eba0a73478ebbcaa (diff) |
sierra: ensure port is valid before doing stuff to it
-rw-r--r-- | plugins/mm-modem-sierra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mm-modem-sierra.c b/plugins/mm-modem-sierra.c index d3f12629..69a7af30 100644 --- a/plugins/mm-modem-sierra.c +++ b/plugins/mm-modem-sierra.c @@ -150,7 +150,7 @@ grab_port (MMModem *modem, port = mm_generic_gsm_grab_port (gsm, subsys, name, ptype, error); - if (MM_IS_SERIAL_PORT (port)) + if (port && MM_IS_SERIAL_PORT (port)) g_object_set (G_OBJECT (port), MM_PORT_CARRIER_DETECT, FALSE, NULL); return !!port; |