diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-04-29 22:31:06 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-04-29 22:31:06 +0000 |
commit | 823862963db0bd401cc45de331ef0c21cc2fa8bd (patch) | |
tree | ea37838fba5769655a054290cb82f5e24e86ebef /loader2/cdinstall.c | |
parent | 769658a65c5ca2b242923b1f8158171189486516 (diff) | |
download | anaconda-823862963db0bd401cc45de331ef0c21cc2fa8bd.tar.gz anaconda-823862963db0bd401cc45de331ef0c21cc2fa8bd.tar.xz anaconda-823862963db0bd401cc45de331ef0c21cc2fa8bd.zip |
don't segfault if there's not a device (#122019)
Diffstat (limited to 'loader2/cdinstall.c')
-rw-r--r-- | loader2/cdinstall.c | 1 |
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, |