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:
parent
f1a5c566c1
commit
050f05c2eb
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user