diff options
author | David Sterba <dsterba@suse.com> | 2017-01-30 13:41:36 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:46 +0100 |
commit | cf83a41a02e2f1f86f6b3c10abe0bf051a151c62 (patch) | |
tree | 202a68cecf1858722d65be9513df1fe3877185d4 /convert/main.c | |
parent | 663253415f2315779c246b889e2030681ff9efae (diff) |
btrfs-progs: convert: move struct initialization to the init function
The context is zeroed in convert_open_fs after and overwrites the rbtree
initialization, which accidentally is the same (NULL).
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'convert/main.c')
-rw-r--r-- | convert/main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/convert/main.c b/convert/main.c index 5a2da312..b0d72d3e 100644 --- a/convert/main.c +++ b/convert/main.c @@ -1159,8 +1159,6 @@ static int convert_open_fs(const char *devname, { int i; - memset(cctx, 0, sizeof(*cctx)); - for (i = 0; i < ARRAY_SIZE(convert_operations); i++) { int ret = convert_operations[i]->open_fs(cctx, devname); |