X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=t%2Fdedupe.c;h=7856da1a14865e2aaa07e9fea3b9580c9ecee4c6;hb=71471cb1d05f3877c8fb935fbf70a6bae789ac49;hp=e1cea50ce720a795a37a948ee0baf097a5060cd4;hpb=f7690c4ac0c9e7609ffdf8ed6255a64e1fa44606;p=fio.git diff --git a/t/dedupe.c b/t/dedupe.c index e1cea50c..7856da1a 100644 --- a/t/dedupe.c +++ b/t/dedupe.c @@ -84,7 +84,7 @@ static uint64_t get_size(struct fio_file *f, struct stat *sb) uint64_t ret; if (S_ISBLK(sb->st_mode)) { - unsigned long long bytes; + unsigned long long bytes = 0; if (blockdev_size(f, &bytes)) { log_err("dedupe: failed getting bdev size\n"); @@ -537,6 +537,7 @@ int main(int argc, char *argv[]) uint64_t nextents = 0, nchunks = 0; int c, ret; + arch_init(argv); debug_init(); while ((c = getopt(argc, argv, "b:t:d:o:c:p:B:")) != -1) {