diff --git a/common/console_common.c b/common/console_common.c index 2e5869f..d051458 100644 --- a/common/console_common.c +++ b/common/console_common.c @@ -246,7 +246,7 @@ struct console_device *cdev; for_each_console(cdev) { - if (!strcmp(cdev->devname, name)) + if (cdev->devname && !strcmp(cdev->devname, name)) return cdev; }