From 68309cf013f7abb54b87886cdfbf5765e8274b32 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 1 Oct 2015 22:39:09 +0200 Subject: [PATCH] Fix an issue when setting the file pointer In true it had no effect, as it's used only in one case, with the field a 0. --- cmdline/elem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/elem.h b/cmdline/elem.h index 4329c42f..07263898 100644 --- a/cmdline/elem.h +++ b/cmdline/elem.h @@ -503,7 +503,7 @@ static inline void block_file_set(struct snapraid_block* block, struct snapraid_ /* LCOV_EXCL_STOP */ } - block->file_mixed = (block->file_mixed & ~(uintptr_t)BLOCK_STATE_MASK) | ptr; + block->file_mixed = (block->file_mixed & (uintptr_t)BLOCK_STATE_MASK) | ptr; } /**