init: log error on missing --output-format argument
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 4 Feb 2014 13:27:11 +0000 (14:27 +0100)
committerJens Axboe <axboe@fb.com>
Wed, 5 Feb 2014 17:10:57 +0000 (10:10 -0700)
commitd10983d78c4d468c00898af2a0f452530f52a18c
tree216f69e093c5d9be46ec0a57d9c603f07ff8a111
parentc4ec0a1d623193b4d344e31b07c6720ecf90323f
init: log error on missing --output-format argument

strcmp(optarg, "foo") will crash if --output-format was given without an
argument.  Log an error and exit properly instead of crashing.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c