mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-19 19:03:47 +08:00
Fix uninitialized variable compiler warning
This commit is contained in:
parent
e336e9930d
commit
1118edbc79
@ -379,8 +379,10 @@ static void get_record_cb(sdp_list_t *recs, int err, gpointer user_data)
|
||||
DBusMessage *reply;
|
||||
GError *gerr = NULL;
|
||||
|
||||
if (!port->listener_id)
|
||||
if (!port->listener_id) {
|
||||
reply = NULL;
|
||||
goto failed;
|
||||
}
|
||||
|
||||
if (err < 0) {
|
||||
error("Unable to get service record: %s (%d)", strerror(-err),
|
||||
|
Loading…
Reference in New Issue
Block a user