Skip to content

Commit

Permalink
[acpi] Fix spurious uninitialised-variable warning on some gcc versions
Browse files Browse the repository at this point in the history
Reported-by: Christian Nilsson <nikize@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Jul 28, 2017
1 parent 041d362 commit 51a7973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/acpi.c
Expand Up @@ -51,7 +51,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
static uint8_t acpi_checksum ( userptr_t table ) {
struct acpi_header acpi;
uint8_t sum = 0;
uint8_t data;
uint8_t data = 0;
unsigned int i;

/* Read table length */
Expand Down

0 comments on commit 51a7973

Please sign in to comment.