From: Denis Vlasenko Date: Tue, 24 Feb 2009 16:47:03 +0000 (-0000) Subject: flash_eraseall.c: fix vda's breakage X-Git-Tag: 1_14_0~306 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e261bba6a5874bdaff92eef3df759e5ec026f7e0;p=oweals%2Fbusybox.git flash_eraseall.c: fix vda's breakage --- diff --git a/miscutils/flash_eraseall.c b/miscutils/flash_eraseall.c index 0411c5a88..3e0c06ffd 100644 --- a/miscutils/flash_eraseall.c +++ b/miscutils/flash_eraseall.c @@ -142,7 +142,7 @@ int flash_eraseall_main(int argc UNUSED_PARAM, char **argv) * types e.g. NOR */ if (errno == EOPNOTSUPP) { - flags = ~BBTEST; + flags &= ~BBTEST; if (flags & IS_NAND) bb_error_msg_and_die("bad block check not available"); } else {