Imported Upstream version 1.40
[platform/upstream/connman.git] / plugins / bluetooth.c
index f759a90..5336103 100644 (file)
@@ -717,8 +717,6 @@ static bool tethering_create(const char *path,
        const char *method;
        bool result;
 
-       DBG("path %s bridge %s", path, bridge);
-
        if (!bridge) {
                g_free(tethering);
                return false;
@@ -730,6 +728,8 @@ static bool tethering_create(const char *path,
                return false;
        }
 
+       DBG("path %s bridge %s", path, bridge);
+
        tethering->technology = technology;
        tethering->bridge = g_strdup(bridge);
        tethering->enable = enabled;