aboutsummaryrefslogtreecommitdiffstats
path: root/binding/gdbus/ofono_manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/gdbus/ofono_manager.c')
-rw-r--r--binding/gdbus/ofono_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/gdbus/ofono_manager.c b/binding/gdbus/ofono_manager.c
index ebe1412..1086beb 100644
--- a/binding/gdbus/ofono_manager.c
+++ b/binding/gdbus/ofono_manager.c
@@ -70,7 +70,7 @@ int ofono_manager_set_default_modem(const char *address)
type = g_variant_get_string(value, NULL);
}
/* If the HFP modem matches the BT address, is powered, and online then set as default */
- if (!strcmp(type, "hfp") && !strcmp(address, serial) && powered && online) {
+ if (!g_strcmp0(type, "hfp") && !g_strcmp0(address, serial) && powered && online) {
default_modem.address = serial;
default_modem.path = path;
default_modem.name = name;