From 44f816e1c6d72aeedd4e7424472d7f1119d38a4b Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 3 Nov 2022 16:59:08 +0000 Subject: [PATCH] trivial: Fix invalid self test loop Spotted by Coverity. --- libfwupd/fwupd-self-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfwupd/fwupd-self-test.c b/libfwupd/fwupd-self-test.c index 236ddf6aa..96987c2c9 100644 --- a/libfwupd/fwupd-self-test.c +++ b/libfwupd/fwupd-self-test.c @@ -198,7 +198,7 @@ fwupd_enums_func(void) g_assert_cmpstr(tmp, !=, NULL); g_assert_cmpint(fwupd_release_flag_from_string(tmp), ==, i); } - for (guint64 i = 1; i <= FWUPD_REQUEST_FLAG_NONE; i *= 2) { + for (guint64 i = 1; i <= FWUPD_REQUEST_FLAG_ALLOW_GENERIC_IMAGE; i *= 2) { const gchar *tmp = fwupd_request_flag_to_string(i); if (tmp == NULL) g_warning("missing request flag 0x%x", (guint)i);