mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
2003-06-21 Andrew Cagney <cagney@redhat.com>
From Ian Lance Taylor <ian@airs.com>: * hw_nvram.c (hw_nvram_init_address): Correct call to memset--swap second and third arguments.
This commit is contained in:
@ -140,7 +140,7 @@ hw_nvram_init_address(device *me)
|
||||
nvram->memory = zalloc(nvram->sizeof_memory);
|
||||
}
|
||||
else
|
||||
memset(nvram->memory, nvram->sizeof_memory, 0);
|
||||
memset(nvram->memory, 0, nvram->sizeof_memory);
|
||||
|
||||
if (device_find_property(me, "timezone") == NULL)
|
||||
nvram->timezone = 0;
|
||||
|
Reference in New Issue
Block a user