Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115648784
D50034.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
571 B
Referenced Files
None
Subscribers
None
D50034.diff
View Options
diff --git a/lib/libefivar/efivar.c b/lib/libefivar/efivar.c
--- a/lib/libefivar/efivar.c
+++ b/lib/libefivar/efivar.c
@@ -77,7 +77,6 @@
{ "f46ee6f4-4785-43a3-923d-7f786c3c8479", "lenovo_startup_interrupt", Z },
{ "ffffffff-ffff-ffff-ffff-ffffffffffff", "zzignore-this-guid", Z },
};
-#undef Z
static void
efi_guid_tbl_compile(void)
@@ -293,9 +292,9 @@
int
efi_guid_is_zero(const efi_guid_t *guid)
{
- uint32_t status;
+ efi_guid_t zero = Z;
- return uuid_is_nil((const uuid_t *)guid, &status);
+ return (memcmp(guid, &zero, sizeof(zero)) == 0);
}
int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 27, 1:15 PM (15 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17808232
Default Alt Text
D50034.diff (571 B)
Attached To
Mode
D50034: efivar: Test uuid against zero
Attached
Detach File
Event Timeline
Log In to Comment