diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index d8a66616b0f..65e5262a099 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -722,7 +722,7 @@ static int find_slot(sd_id128_t uuid, const char *path, uint16_t *id) { for (i = 0; i < n; i++) if (i != options[i]) { *id = i; - return 1; + return 0; } /* use the next one */