Message ID | 1408117628-17512-4-git-send-email-mreitz@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/qemu-img.c b/qemu-img.c index 4b6406b..0bd8fa5 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -2808,7 +2808,9 @@ static int img_amend(int argc, char **argv) } if (optind != argc - 1) { - error_exit("Expecting one image file name"); + error_report("Expecting one image file name"); + ret = -1; + goto out; } flags = BDRV_O_FLAGS | BDRV_O_RDWR;