diff options
-rw-r--r-- | serial/port.c | 2 |
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; } |