]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
chid-fundamental: make namespace GUID static, too
authorLennart Poettering <lennart@poettering.net>
Fri, 20 Dec 2024 11:03:50 +0000 (12:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 20 Dec 2024 17:06:34 +0000 (18:06 +0100)
src/fundamental/chid-fundamental.c

index ab366ca8ee4bca1c0b32a486e184bce86dedb501..4e2b229bd7bf6a3ee6b89a5da1363f091bc33659 100644 (file)
@@ -35,11 +35,11 @@ static void get_chid(
 
         assert(mask != 0);
         assert(ret_chid);
-        const EFI_GUID namespace = { UINT32_C(0x12d8ff70), UINT16_C(0x7f4c), UINT16_C(0x7d4c), {} }; /* Swapped to BE */
 
         struct sha1_ctx ctx = {};
         sha1_init_ctx(&ctx);
 
+        static const EFI_GUID namespace = { UINT32_C(0x12d8ff70), UINT16_C(0x7f4c), UINT16_C(0x7d4c), {} }; /* Swapped to BE */
         sha1_process_bytes(&namespace, sizeof(namespace), &ctx);
 
         for (unsigned i = 0; i < _CHID_SMBIOS_FIELDS_MAX; i++) {