mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
gcc-fanalyzer: remove unneded zeroing
Since we zallocate array here, we don't need to set to NULL and clean gcc warning about strdup leakage.
This commit is contained in:
parent
178df1c8f4
commit
4ef8f7cde6
@ -2085,7 +2085,6 @@ static void _restart_dmeventd(void)
|
|||||||
}
|
}
|
||||||
message += strlen(message) + 1;
|
message += strlen(message) + 1;
|
||||||
}
|
}
|
||||||
_initial_registrations[count] = NULL;
|
|
||||||
|
|
||||||
if (version >= 2) {
|
if (version >= 2) {
|
||||||
if (daemon_talk(&fifos, &msg, DM_EVENT_CMD_GET_PARAMETERS, "-", "-", 0, 0)) {
|
if (daemon_talk(&fifos, &msg, DM_EVENT_CMD_GET_PARAMETERS, "-", "-", 0, 0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user