diff options
Diffstat (limited to 'e2fsprogs')
-rw-r--r-- | e2fsprogs/fsck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c index 59514a1..6414988 100644 --- a/e2fsprogs/fsck.c +++ b/e2fsprogs/fsck.c @@ -658,7 +658,7 @@ static int device_already_active(char *device) return (G.instance_list != NULL); for (inst = G.instance_list; inst; inst = inst->next) { - if (!inst->base_device || !strcmp(base, inst->base_device)) { + if (!inst->base_device || strcmp(base, inst->base_device) == 0) { free(base); return 1; } |