mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-28 03:41:02 +00:00
trivial: Fix invalid self test loop
Spotted by Coverity.
This commit is contained in:
parent
6bc1ecd615
commit
44f816e1c6
@ -198,7 +198,7 @@ fwupd_enums_func(void)
|
|||||||
g_assert_cmpstr(tmp, !=, NULL);
|
g_assert_cmpstr(tmp, !=, NULL);
|
||||||
g_assert_cmpint(fwupd_release_flag_from_string(tmp), ==, i);
|
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);
|
const gchar *tmp = fwupd_request_flag_to_string(i);
|
||||||
if (tmp == NULL)
|
if (tmp == NULL)
|
||||||
g_warning("missing request flag 0x%x", (guint)i);
|
g_warning("missing request flag 0x%x", (guint)i);
|
||||||
|
Loading…
Reference in New Issue
Block a user