diff options
author | Dan Williams <dcbw@redhat.com> | 2010-04-30 00:35:30 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-04-30 00:35:30 -0700 |
commit | de86b71b3d0376d7483dff2ac21cfe701f35ac42 (patch) | |
tree | 650236e0a113b51aaef07d8a064cc94989116b9b /plugins/mm-modem-zte.c | |
parent | 30473ce7c9868528faf05923b676e23da9c19137 (diff) |
zte: fix getting GSM allowed mode
Diffstat (limited to 'plugins/mm-modem-zte.c')
-rw-r--r-- | plugins/mm-modem-zte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mm-modem-zte.c b/plugins/mm-modem-zte.c index e837192a..0bbf0d24 100644 --- a/plugins/mm-modem-zte.c +++ b/plugins/mm-modem-zte.c @@ -137,7 +137,7 @@ get_allowed_mode_done (MMAtSerialPort *port, g_match_info_free (match_info); - if (cm_mode >=0 && cm_mode <= 2 && pref_acq >= 0 && pref_acq <= 2) { + if (cm_mode < 0 || cm_mode > 2 || pref_acq < 0 || pref_acq > 2) { info->error = g_error_new (MM_MODEM_ERROR, MM_MODEM_ERROR_GENERAL, "Failed to parse the allowed mode response: '%s'", |