]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: update comment about unnecessary initialization 19303/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Apr 2021 03:53:32 +0000 (12:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Apr 2021 03:53:32 +0000 (12:53 +0900)
src/basic/tmpfile-util.c
src/cryptsetup/cryptsetup.c

index 5ee71d015887aa8441e57498bb13aa19a77945ff..c5ae92f985fb5f6db862ea37bb459fbcc175c4b4 100644 (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);
 
index ee31400e3f76c59a10fa6f5288d49be75bb93435..c9cebb46378e9d227ab4cffd38fea881e40c4bad 100644 (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);