Skip to contentSkip to conversation

main - gcc-fanalyzer: drop zeroing of pointers

PATCH Zdenek Kabelac 1 participant 1 message Sep 20, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=becffe4567543e3e0c51c728a4b266cf94fd2cdf
Commit:        becffe4567543e3e0c51c728a4b266cf94fd2cdf
Parent:        909401226cd7219fa07389bc396723b0c01cd9dd
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Sep 20 13:53:20 2021 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Sep 20 14:18:13 2021 +0200

gcc-fanalyzer: drop zeroing of pointers

This explicit pointer zeroing is not needed since
we use 'zalloced' buffers.

---
 lib/format_text/archiver.c | 3 ---
 1 file changed, 3 deletions(-)
lib/format_text/archiver.c +0 -3
index fae368784..87e4edc40 100644
@@ -50,8 +50,6 @@ int archive_init(struct cmd_context *cmd, const char *dir,
 		return 0;
 	}
 
-	cmd->archive_params->dir = NULL;
-
 	if (!*dir)
 		return 1;
 
@@ -195,7 +193,6 @@ int backup_init(struct cmd_context *cmd, const char *dir,
 		return 0;
 	}
 
-	cmd->backup_params->dir = NULL;
 	if (!*dir)
 		return 1;