summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-01-28 11:44:19 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-01-28 11:44:19 +0200
commitc576c26df4b61b483313168603887c8e44d30734 (patch)
treef9b08984f499cdcdbcfe58c383dc5e57ff4c29de
parent19af3c49e61aa046375497108e05a3a0605da158 (diff)
Fix uninitialized address variable
-rw-r--r--audio/control.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/control.c b/audio/control.c
index 244c44cc..9d21b594 100644
--- a/audio/control.c
+++ b/audio/control.c
@@ -675,6 +675,8 @@ static void avctp_server_cb(GIOChannel *chan, int err, const bdaddr_t *src,
goto drop;
}
+ ba2str(dst, address);
+
if (session->sock >= 0) {
error("Refusing unexpected connect from %s", address);
goto drop;