Fix: Initialize registration statuses
authorDenis Kenzior <denkenz@gmail.com>
Mon, 26 Oct 2009 21:19:54 +0000 (16:19 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 26 Oct 2009 21:19:54 +0000 (16:19 -0500)
src/gprs.c

index 487297e..5a5e4f2 100644 (file)
@@ -1222,6 +1222,8 @@ struct ofono_gprs *ofono_gprs_create(struct ofono_modem *modem,
                break;
        }
 
+       gprs->status = NETWORK_REGISTRATION_STATUS_UNKNOWN;
+       gprs->netreg_status = NETWORK_REGISTRATION_STATUS_UNKNOWN;
        gprs->technology = -1;
        gprs->cellid = -1;
        gprs->location = -1;