1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-12 09:17:44 +03:00

tree-wide: update comment about unnecessary initialization

This commit is contained in:
Yu Watanabe 2021-04-13 12:53:32 +09:00
parent f1a5c566c1
commit 050f05c2eb
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ int fopen_temporary(const char *path, FILE **ret_f, char **ret_temp_path) {
/* This is much like mkostemp() but is subject to umask(). */
int mkostemp_safe(char *pattern) {
int fd = -1; /* avoid false maybe-uninitialized warning */
int fd = -1; /* avoid false maybe-uninitialized warning */
assert(pattern);

View File

@ -1008,7 +1008,7 @@ static int attach_luks_or_plain_or_bitlk_by_tpm2(
_cleanup_(sd_event_unrefp) sd_event *event = NULL;
_cleanup_free_ char *friendly = NULL;
int keyslot = arg_key_slot, r;
size_t decrypted_key_size = 0; /* Silence gcc warning about unitialized variable */
size_t decrypted_key_size = 0; /* avoid false maybe-uninitialized warning */
assert(cd);
assert(name);