diff options
-rw-r--r-- | cat/virt-cat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cat/virt-cat.c b/cat/virt-cat.c index 58ebd8ec..3510a948 100644 --- a/cat/virt-cat.c +++ b/cat/virt-cat.c @@ -220,6 +220,10 @@ main (int argc, char *argv[]) if (optind >= argc || argc - optind < 1) usage (EXIT_FAILURE); + /* User must have specified some drives. */ + if (drvs == NULL) + usage (EXIT_FAILURE); + /* Add drives, inspect and mount. Note that inspector is always true, * and there is no -m option. */ |