summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index 71aaa60..080cfac 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -531,7 +531,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
mddev, strerror(errno));
return 1;
}
- if (ident->bitmap_fd) {
+ if (ident->bitmap_fd >= 0) {
if (ioctl(mdfd, SET_BITMAP_FILE, ident->bitmap_fd) != 0) {
fprintf(stderr, Name ": SET_BITMAP_FILE failed.\n");
return 1;