Skip to contentSkip to conversation

main - gcc-fanalyzer: remove unneded zeroing

PATCH Zdenek Kabelac 1 participant 1 message Sep 21, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4ef8f7cde6ea481f96f101dc6189979cf3674cfe
Commit:        4ef8f7cde6ea481f96f101dc6189979cf3674cfe
Parent:        178df1c8f4aa6fa73f9f55f2a7f5f7b8c8c0964d
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Sep 21 18:09:45 2021 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Sep 21 21:03:47 2021 +0200

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.

---
 daemons/dmeventd/dmeventd.c | 1 -
 1 file changed, 1 deletion(-)
daemons/dmeventd/dmeventd.c +0 -1
index 46b3ff12f..d89ab4af8 100644
@@ -2085,7 +2085,6 @@ static void _restart_dmeventd(void)
 		}
 		message += strlen(message) + 1;
 	}
-	_initial_registrations[count] = NULL;
 
 	if (version >= 2) {
 		if (daemon_talk(&fifos, &msg, DM_EVENT_CMD_GET_PARAMETERS, "-", "-", 0, 0)) {