Skip to contentSkip to conversation

Minor fixes: typo, missing break in switch

PATCH In review Boris Egorov 2 participants 2 messages Nov 12, 2014 – Nov 13, 2014 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Minor fixes: typo, missing break in switch

---
 disk-utils/fdisk.c               | 1 +
 libblkid/src/superblocks/nilfs.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
disk-utils/fdisk.c +1 -0
index e5fe31b..7d6951d 100644
@@ -779,6 +779,7 @@ int main(int argc, char **argv)
 			if (!lb)
 				errx(EXIT_FAILURE, _("unsupported disklabel: %s"), optarg);
 			fdisk_label_set_disabled(lb, 0);
+			break;
 		}
 		case 'u':
 			if (optarg && *optarg == '=')
libblkid/src/superblocks/nilfs.c +1 -1
index 7b87717..3f03901 100644
@@ -97,7 +97,7 @@ static int probe_nilfs2(blkid_probe pr, const struct blkid_idmag *mag)
 	/* backup */
 	sbb = (struct nilfs_super_block *) blkid_probe_get_buffer(
 			pr, ((pr->size / 0x200) - 8) * 0x200, sizeof(struct nilfs_super_block));
-	if (!sbp)
+	if (!sbb)
 		return errno ? -errno : 1;
 
 	/*
Signature · 1 line
2.1.3
maintainer
#1 lore raw
Quoted 3 lines · Boris Egorov
 disk-utils/fdisk.c               | 1 +
 libblkid/src/superblocks/nilfs.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

Applied (as two patches), thanks!

Karel

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com