| Submitter | Kevin Wolf |
|---|---|
| Date | June 15, 2010, 2:19 p.m. |
| Message ID | <1276611581-3757-7-git-send-email-kwolf@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/55693/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/blockdev.c b/blockdev.c index 642ce75..dbeef09 100644 --- a/blockdev.c +++ b/blockdev.c @@ -462,7 +462,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi, int *fatal_error) case IF_COUNT: abort(); } - if (!file) { + if (!file || !*file) { *fatal_error = 0; return NULL; }