summaryrefslogtreecommitdiffstats
path: root/plugins/modemconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/modemconf.c')
-rw-r--r--plugins/modemconf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/modemconf.c b/plugins/modemconf.c
index 39a62b8a..882fa5a3 100644
--- a/plugins/modemconf.c
+++ b/plugins/modemconf.c
@@ -57,15 +57,17 @@ static int set_address(struct ofono_modem *modem,
if (value) {
ofono_modem_set_string(modem, "Address", value);
g_free(value);
- } else
+ } else {
ofono_modem_set_string(modem, "Address", "127.0.0.1");
+ }
value = g_key_file_get_string(keyfile, group, "Port", NULL);
if (value) {
ofono_modem_set_integer(modem, "Port", atoi(value));
g_free(value);
- } else
+ } else {
ofono_modem_set_integer(modem, "Port", 12345);
+ }
value = g_key_file_get_string(keyfile, group, "Modem", NULL);
if (value) {