From: Yu Watanabe Date: Tue, 13 Apr 2021 03:53:32 +0000 (+0900) Subject: tree-wide: update comment about unnecessary initialization X-Git-Tag: v249-rc1~423^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=050f05c2eb25c8cc1fe24683087969ffe063ceb4;p=thirdparty%2Fsystemd.git tree-wide: update comment about unnecessary initialization --- diff --git a/src/basic/tmpfile-util.c b/src/basic/tmpfile-util.c index 5ee71d01588..c5ae92f985f 100644 --- a/src/basic/tmpfile-util.c +++ b/src/basic/tmpfile-util.c @@ -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); diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index ee31400e3f7..c9cebb46378 100644 --- a/src/cryptsetup/cryptsetup.c +++ b/src/cryptsetup/cryptsetup.c @@ -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);