1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

hints: drop unneeded memset

strncpy will zero buffer itself.
This commit is contained in:
Zdenek Kabelac 2019-11-14 17:59:32 +01:00
parent 1760b96368
commit 14e01d6316

View File

@ -941,7 +941,6 @@ int write_hint_file(struct cmd_context *cmd, int newhints)
* detect when the devices on the system change, which
* invalidates the existing hints.
*/
memset(devpath, 0, sizeof(devpath));
strncpy(devpath, dev_name(dev), PATH_MAX);
hash = calc_crc(hash, (const uint8_t *)devpath, strlen(devpath));
count++;