summaryrefslogtreecommitdiffstats
path: root/serial
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-29 20:07:42 -0300
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-30 14:30:47 -0300
commit96e860e3227cec608ef1024e47e255d3f0dd0b86 (patch)
tree2cbbad76e9bbccb8a88fc67273ca0394129849e4 /serial
parent31aed69c97fdef0ba15c399377ac8208129b5f84 (diff)
Fix possible check for not assigned devnode.
Diffstat (limited to 'serial')
-rw-r--r--serial/port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/port.c b/serial/port.c
index 57475c56..0c70dc07 100644
--- a/serial/port.c
+++ b/serial/port.c
@@ -108,7 +108,7 @@ static struct serial_port *find_port(GSList *ports, const char *pattern)
if (!strcasecmp(port->uuid, pattern))
return port;
- if (!strcmp(port->dev, pattern))
+ if (port->dev && !strcmp(port->dev, pattern))
return port;
}