summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-04-29 22:31:06 +0000
committerJeremy Katz <katzj@redhat.com>2004-04-29 22:31:06 +0000
commit823862963db0bd401cc45de331ef0c21cc2fa8bd (patch)
treeea37838fba5769655a054290cb82f5e24e86ebef
parent769658a65c5ca2b242923b1f8158171189486516 (diff)
downloadanaconda-823862963db0bd401cc45de331ef0c21cc2fa8bd.tar.gz
anaconda-823862963db0bd401cc45de331ef0c21cc2fa8bd.tar.xz
anaconda-823862963db0bd401cc45de331ef0c21cc2fa8bd.zip
don't segfault if there's not a device (#122019)
-rw-r--r--loader2/cdinstall.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/loader2/cdinstall.c b/loader2/cdinstall.c
index edd5a2357..2ada33864 100644
--- a/loader2/cdinstall.c
+++ b/loader2/cdinstall.c
@@ -308,6 +308,7 @@ char * setupCdrom(char * location,
/* JKFIXME: ASSERT -- we have a cdrom device when we get here */
do {
for (i = 0; devices[i]; i++) {
+ if (!devices[i]->device) continue;
logMessage("trying to mount CD device %s", devices[i]->device);
devMakeInode(devices[i]->device, "/tmp/cdrom");
if (!doPwMount("/tmp/cdrom", "/mnt/source", "iso9660", 1, 0,