diff options
author | Pyun DoHyun <dh79.pyun@samsung.com> | 2018-05-17 23:54:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.ap-northeast-2.compute.internal> | 2018-05-17 23:54:41 +0000 |
commit | f49f299ff199852f426a8cc7f557463646d5dc47 (patch) | |
tree | 397f87c61699c3cbed50edb594966293cd9ed6c5 | |
parent | 589d89274eed681f1ff11541f51f9cd5c7156643 (diff) | |
parent | b76ee41dbea4fc67a46bc75b62b3e3f590386715 (diff) | |
download | bluez-f49f299ff199852f426a8cc7f557463646d5dc47.tar.gz bluez-f49f299ff199852f426a8cc7f557463646d5dc47.tar.bz2 bluez-f49f299ff199852f426a8cc7f557463646d5dc47.zip |
Merge "Fix possible invalid memory access" into tizen
-rw-r--r--[-rwxr-xr-x] | client/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/main.c b/client/main.c index 76842b11..17a92fda 100755..100644 --- a/client/main.c +++ b/client/main.c @@ -1818,12 +1818,12 @@ static void cmd_disconn(int argc, char *argv[]) if (argc < 2 || strlen(argv[1]) == 0) { DBusMessageIter iter; - const char *addr; - if (g_dbus_proxy_get_property(proxy, "Address", &iter) == TRUE) + if (g_dbus_proxy_get_property(proxy, "Address", &iter) == TRUE) { + const char *addr; dbus_message_iter_get_basic(&iter, &addr); - - bt_shell_printf("Attempting to disconnect from %s\n", addr); + bt_shell_printf("Attempting to disconnect from %s\n", addr); + } } else bt_shell_printf("Attempting to disconnect from %s\n", argv[1]); } |