diff --git a/src/add-ons/kernel/bus_managers/acpi/acpi_ns_dump.cpp b/src/add-ons/kernel/bus_managers/acpi/acpi_ns_dump.cpp index 1545f95ae1..c5eb8a6328 100644 --- a/src/add-ons/kernel/bus_managers/acpi/acpi_ns_dump.cpp +++ b/src/add-ons/kernel/bus_managers/acpi/acpi_ns_dump.cpp @@ -74,12 +74,10 @@ dump_acpi_namespace(acpi_ns_device_info *device, char *root, int indenting) { char result[255]; char output[320]; - char tabs[255]; - char hid[16]; + char tabs[255] = ""; + char hid[16] = ""; int i; size_t written = 0; - hid[0] = '\0'; - tabs[0] = '\0'; for (i = 0; i < indenting; i++) strlcat(tabs, "| ", sizeof(tabs));