diff options
author | Jakub Tyszkowski <jakub.tyszkowski@tieto.com> | 2014-01-20 11:00:08 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-01-20 12:20:12 +0200 |
commit | 5d6a183585f50d07bce197c2eb1cea1d61c1cc58 (patch) | |
tree | 49d2c043a4dc61d6bdfc2fb20f22af863f8981e5 /android/pan.c | |
parent | cb539da4f3a40a2d25fae9bb18010f10158e7fb7 (diff) | |
download | bluez-5d6a183585f50d07bce197c2eb1cea1d61c1cc58.tar.gz |
android/pan: Initialize GError with NULL
This patch fixes the following issue:
bluetoothd[10552]: android/pan.c:register_nap_server()
bluetoothd[10552]: android/pan.c:nap_create_bridge() bnep
(bluetoothd:10552): GLib-WARNING **: GError set over the top of a previous GError or uninitialized memory.
This indicates a bug in someone's code. You must ensure an error is NULL before it's set.
The overwriting error message was: l2cap_bind: Address already in use (98)
bluetoothd[10552]: android/pan.c:destroy_nap_device()
Diffstat (limited to 'android/pan.c')
-rw-r--r-- | android/pan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/pan.c b/android/pan.c index dfd77621c..3544d7492 100644 --- a/android/pan.c +++ b/android/pan.c @@ -542,7 +542,7 @@ static void destroy_nap_device(void) static int register_nap_server(void) { - GError *gerr; + GError *gerr = NULL; int err; DBG(""); |