Add missing parantheses around if block
authorkn <kn@openbsd.org>
Tue, 22 Nov 2022 14:37:58 +0000 (14:37 +0000)
committerkn <kn@openbsd.org>
Tue, 22 Nov 2022 14:37:58 +0000 (14:37 +0000)
Stated during review but missed in the previous commit.

usr.sbin/installboot/efi_installboot.c

index 643254f..99f12e7 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: efi_installboot.c,v 1.8 2022/11/22 09:53:46 tobhe Exp $       */
+/*     $OpenBSD: efi_installboot.c,v 1.9 2022/11/22 14:37:58 kn Exp $  */
 /*     $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
 
 /*
@@ -373,10 +373,11 @@ write_firmware(const char *root, const char *mnt)
                if (verbose)
                        fprintf(stderr, "%s %s to %s\n",
                            (nowrite ? "would copy" : "copying"), src, dst);
-               if (!nowrite)
+               if (!nowrite) {
                        rslt = filecopy(src, dst);
                        if (rslt == -1)
                                goto cleanup;
+               }
        }
        rslt = 0;