From 9b29611fb8977e1a5b236986df9c50b791b72ddd Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 18 Jun 2018 23:17:38 -0400 Subject: [PATCH] ACPI: Set handle to NULL. There is a (probably non-viable) case where it might not get initialized by the function and then potentially used, so set it to NULL to silence Clang. --- src/add-ons/kernel/bus_managers/acpi/Device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/bus_managers/acpi/Device.cpp b/src/add-ons/kernel/bus_managers/acpi/Device.cpp index 7b7ed1d725..3a9dfbbc58 100644 --- a/src/add-ons/kernel/bus_managers/acpi/Device.cpp +++ b/src/add-ons/kernel/bus_managers/acpi/Device.cpp @@ -87,7 +87,7 @@ acpi_walk_resources(acpi_device device, char *method, static status_t acpi_device_init_driver(device_node *node, void **cookie) { - ACPI_HANDLE handle; + ACPI_HANDLE handle = NULL; const char *path = NULL; uint32 type;