Fix braino in previous commit: getenv() can return NULL.

This commit is contained in:
Marcel Moolenaar 2004-03-20 08:38:33 +00:00
parent 1e709c9cb5
commit 139a40ebfe

View File

@ -177,6 +177,8 @@ uart_getenv(int devtype, struct uart_devinfo *di)
else if (devtype == UART_DEV_DBGPORT)
spec = getenv("hw.uart.dbgport");
else
spec = NULL;
if (spec == NULL)
return (ENXIO);
/* Set defaults. */