]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
efi-string: Remove one more |= for bool
authorJan Janssen <medhefgo@web.de>
Fri, 10 Jun 2022 07:32:34 +0000 (09:32 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Jun 2022 12:14:57 +0000 (14:14 +0200)
This one was missed in #23589.

src/boot/efi/efi-string.c

index b9ef1548ca24494fe21ab6b1c460905a60aebc97..072c649f8faf08605f3ab334ebf7efa6a20724c7 100644 (file)
@@ -193,7 +193,8 @@ static bool efi_fnmatch_internal(const char16_t *p, const char16_t *h, int max_d
                                         p++;
                                         if (*p == '\0')
                                                 return false;
-                                        match |= *p == *h;
+                                        if (*p == *h)
+                                                match = true;
                                         can_range = true;
                                         continue;
                                 }