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:
parent
1760b96368
commit
14e01d6316
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user