summaryrefslogtreecommitdiff
path: root/cMain.c
diff options
context:
space:
mode:
Diffstat (limited to 'cMain.c')
-rw-r--r--cMain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cMain.c b/cMain.c
index 4f9dc9b..0238d3b 100644
--- a/cMain.c
+++ b/cMain.c
@@ -912,7 +912,7 @@ BOOL Start()
PORT->PROTOCOL = (char)PortRec->PROTOCOL;
PORT->IOBASE = PortRec->IOADDR;
- if (PortRec->SerialPortName[0])
+ if (PortRec->SerialPortName && PortRec->SerialPortName[0])
PORT->SerialPortName = _strdup(PortRec->SerialPortName);
else
{