use '=""' to initialize the empty strings

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28608 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-11-11 15:33:42 +00:00
parent 922c02a7f9
commit 176ecb2f37

View File

@ -74,12 +74,10 @@ dump_acpi_namespace(acpi_ns_device_info *device, char *root, int indenting)
{ {
char result[255]; char result[255];
char output[320]; char output[320];
char tabs[255]; char tabs[255] = "";
char hid[16]; char hid[16] = "";
int i; int i;
size_t written = 0; size_t written = 0;
hid[0] = '\0';
tabs[0] = '\0';
for (i = 0; i < indenting; i++) for (i = 0; i < indenting; i++)
strlcat(tabs, "| ", sizeof(tabs)); strlcat(tabs, "| ", sizeof(tabs));