]> granicus.if.org Git - strace/commitdiff
btrfs: add missing braces
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 2 May 2018 20:41:28 +0000 (22:41 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 3 May 2018 00:09:53 +0000 (00:09 +0000)
Reported by Coverity.

* btrfs.c (MPERS_PRINTER_DECL(btrfs_ioctl)) <case
BTRFS_IOC_TREE_SEARCH_V2>: Add missing braces.

Fixes: v4.22-76-gf766447 "btrfs: use PRINT_FIELD_*"
btrfs.c

diff --git a/btrfs.c b/btrfs.c
index bae18478aa9bbdc75c1b86abe0aee149988eccd3..8ba976de29fad8d647dad35a0e03c04320c3f224 100644 (file)
--- a/btrfs.c
+++ b/btrfs.c
@@ -1124,9 +1124,10 @@ MPERS_PRINTER_DECL(int, btrfs_ioctl,
                        if (tcp->u_error == EOVERFLOW) {
                                tprints(" => ");
                                if (!umove_or_printaddr_ignore_syserror(tcp,
-                                   arg, &args))
+                                   arg, &args)) {
                                        PRINT_FIELD_U("{", args, buf_size);
                                        tprints("}");
+                               }
                        }
                        break;
                } else