Merge tag 'upstream/1.40' into tizen.
[platform/upstream/connman.git] / plugins / bluetooth.c
index 704d216..a8383e7 100755 (executable)
@@ -738,8 +738,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;
@@ -751,6 +749,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;