commit | b7c6302da8b30f221310dd6c917136229ee5e688 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Jun 11 11:47:56 2008 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Jun 11 11:47:56 2008 +0200 |
tree | 033865593dd9e3fe5fd480439ab8d47a83b4acf1 | |
parent | 5b6f5c6609c530943310754028d2628d984b6595 [diff] |
Clear num_opts early If we error out, it could be garbage. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c index 9169977..652b2e2 100644 --- a/init.c +++ b/init.c
@@ -637,6 +637,7 @@ alloc_opts = 8; opts = malloc(sizeof(char *) * alloc_opts); + num_opts = 0; stonewall = stonewall_flag; do {