]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Merge branch 'master-branch-5' of https://github.com/Leefancy/util-linux
authorKarel Zak <kzak@redhat.com>
Wed, 10 Jun 2026 08:52:02 +0000 (10:52 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Jun 2026 08:52:02 +0000 (10:52 +0200)
* 'master-branch-5' of https://github.com/Leefancy/util-linux:
  fix(resize_partition): initialize index to avoid undefined behavior

# Conflicts:
# disk-utils/fdisk.c

1  2 
disk-utils/fdisk.c

index 57e56671ddb2e128ba421aab5efe88547a1004da,6505269a461390c54c5450bfa748ea85b3318109..a593487cacdde60cbffde87aed9f2600196636b3
@@@ -682,9 -684,8 +682,9 @@@ void resize_partition(struct fdisk_cont
        struct fdisk_partition *pa = NULL, *npa = NULL, *next = NULL;
        char *query = NULL, *response = NULL, *default_size;
        struct fdisk_table *tb = NULL;
 -      uint64_t max_size, size, secs;
 +      uint64_t max_size, secs;
 +      uintmax_t size;
-       size_t i;
+       size_t i = 0;
        int rc;
  
        assert(cxt);