diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-20 13:53:20 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-20 14:18:13 +0200 |
commit | becffe4567543e3e0c51c728a4b266cf94fd2cdf (patch) | |
tree | 66d3118131e611a699c3a7e188a5482f69dfb938 /lib/format_text | |
parent | 909401226cd7219fa07389bc396723b0c01cd9dd (diff) | |
download | lvm2-becffe4567543e3e0c51c728a4b266cf94fd2cdf.tar.gz |
gcc-fanalyzer: drop zeroing of pointers
This explicit pointer zeroing is not needed since
we use 'zalloced' buffers.
Diffstat (limited to 'lib/format_text')
-rw-r--r-- | lib/format_text/archiver.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/format_text/archiver.c b/lib/format_text/archiver.c index fae368784..87e4edc40 100644 --- a/lib/format_text/archiver.c +++ b/lib/format_text/archiver.c @@ -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; |