Browse Source

[acpi] Fix spurious uninitialised-variable warning on some gcc versions

Reported-by: Christian Nilsson <nikize@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 6 years ago
parent
commit
51a79731f6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/core/acpi.c

+ 1
- 1
src/core/acpi.c View File

@@ -51,7 +51,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
51 51
 static uint8_t acpi_checksum ( userptr_t table ) {
52 52
 	struct acpi_header acpi;
53 53
 	uint8_t sum = 0;
54
-	uint8_t data;
54
+	uint8_t data = 0;
55 55
 	unsigned int i;
56 56
 
57 57
 	/* Read table length */

Loading…
Cancel
Save