diff options
| author | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-29 20:07:42 -0300 | 
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-30 14:30:47 -0300 | 
| commit | 96e860e3227cec608ef1024e47e255d3f0dd0b86 (patch) | |
| tree | 2cbbad76e9bbccb8a88fc67273ca0394129849e4 | |
| parent | 31aed69c97fdef0ba15c399377ac8208129b5f84 (diff) | |
Fix possible check for not assigned devnode.
| -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;  	} | 
