diff options
author | Alexander Orlenko <zxteam@gmail.com> | 2010-08-23 20:18:45 +1100 |
---|---|---|
committer | Alexander Orlenko <zxteam@gmail.com> | 2010-08-23 20:18:45 +1100 |
commit | 09556b563f4577bc86ea2d68de1fd518c61075d2 (patch) | |
tree | 7084158caa0d623a423e08c82dff7cfd03f9a56f /src/bt-adapter.c | |
parent | 6432c87a1730024d8a80eceae0404f7b9d3e08cd (diff) | |
download | bluez-tools-09556b563f4577bc86ea2d68de1fd518c61075d2.tar.gz |
Some fixes in manual pages
Fixed bug in bt-adapter if device "Name" does not resolved (device discover mode)
Fixed bug in bt-obex if unknown device name specified for OPP mode
Diffstat (limited to 'src/bt-adapter.c')
-rw-r--r-- | src/bt-adapter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bt-adapter.c b/src/bt-adapter.c index 28b9731..e39ef86 100644 --- a/src/bt-adapter.c +++ b/src/bt-adapter.c @@ -46,8 +46,8 @@ static void adapter_device_found(Adapter *adapter, const gchar *address, GHashTa if (g_hash_table_size(found_devices) == 0) g_print("\n"); g_print("[%s]\n", address); - g_print(" Name: %s\n", g_value_get_string(g_hash_table_lookup(values, "Name"))); - g_print(" Alias: %s\n", g_value_get_string(g_hash_table_lookup(values, "Alias"))); + g_print(" Name: %s\n", g_hash_table_lookup(values, "Name") != NULL ? g_value_get_string(g_hash_table_lookup(values, "Name")) : NULL); + g_print(" Alias: %s\n", g_hash_table_lookup(values, "Alias") != NULL ? g_value_get_string(g_hash_table_lookup(values, "Alias")) : NULL); g_print(" Address: %s\n", g_value_get_string(g_hash_table_lookup(values, "Address"))); g_print(" Icon: %s\n", g_value_get_string(g_hash_table_lookup(values, "Icon"))); g_print(" Class: 0x%x\n", g_value_get_uint(g_hash_table_lookup(values, "Class"))); |