summaryrefslogtreecommitdiff
path: root/serial
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-06-30 14:24:54 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2009-06-30 14:24:54 +0300
commitb09e5f88928d230f4c1c3bcdb9c53656b513bcbd (patch)
tree2c0fdbb4fd127ae73baffbfe67cab627ce6a8464 /serial
parent465bbe7a46c01e9a21e05e7abb17e47be0c64bd3 (diff)
Fix NULL check in find_port() for port->uuid
Diffstat (limited to 'serial')
-rw-r--r--serial/port.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/serial/port.c b/serial/port.c
index 426107578..42a4f3d27 100644
--- a/serial/port.c
+++ b/serial/port.c
@@ -121,6 +121,9 @@ static struct serial_port *find_port(GSList *ports, const char *pattern)
if (port->dev && !strcmp(port->dev, pattern))
return port;
+ if (!port->uuid)
+ continue;
+
uuid_str = bt_name2string(pattern);
if (!uuid_str)
continue;