]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: fix ambiguous code
authorKarel Zak <kzak@redhat.com>
Fri, 26 Apr 2013 11:54:24 +0000 (13:54 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 26 Apr 2013 11:54:24 +0000 (13:54 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisks/cfdisk.c

index 3fcc5d82dff13593ad0ae9a0616d96dabd9f6bcf..76a7aae26eb93fc9fe98ee7f956570dc7614436b 100644 (file)
@@ -405,12 +405,12 @@ partition_type_text(int i) {
 static void
 fdexit(int ret) {
     if (opened) {
-       if (changed)
+       if (changed) {
            if (close_fd(fd) != 0) {
                fprintf(stderr, _("write failed\n"));
                exit(2);
            }
-       else
+       else
            close(fd);
     }
     if (changed) {