mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
gcc-fanalyzer: drop zeroing of pointers
This explicit pointer zeroing is not needed since we use 'zalloced' buffers.
This commit is contained in:
parent
909401226c
commit
becffe4567
@ -50,8 +50,6 @@ int archive_init(struct cmd_context *cmd, const char *dir,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd->archive_params->dir = NULL;
|
|
||||||
|
|
||||||
if (!*dir)
|
if (!*dir)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
@ -195,7 +193,6 @@ int backup_init(struct cmd_context *cmd, const char *dir,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd->backup_params->dir = NULL;
|
|
||||||
if (!*dir)
|
if (!*dir)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user