]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: add initializer to geometry
authorKarel Zak <kzak@redhat.com>
Mon, 29 Apr 2024 12:59:44 +0000 (14:59 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 2 May 2024 08:56:26 +0000 (10:56 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/dos.c

index ecf0b367857242f55b681114ad0968300264f635..5c00164ce96cb97da8719276a416c3d3b464cfde 100644 (file)
@@ -790,7 +790,7 @@ static void get_partition_table_geometry(struct fdisk_context *cxt,
                        unsigned int *ph, unsigned int *ps)
 {
        unsigned char *bufp = cxt->firstsector;
-       struct { unsigned int c, h, o, v; } t[8];
+       struct { unsigned int c, h, o, v; } t[8] = { 0 };
        unsigned int n1, n2, n3, n4, n5, n6;
        const struct dos_partition *p;
        unsigned int c, h, s, l;