From: Karel Zak Date: Mon, 29 Apr 2024 12:59:44 +0000 (+0200) Subject: libfdisk: add initializer to geometry X-Git-Tag: v2.42-start~367 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=441b403af36902bebfecc03ede812ff515bf7573;p=thirdparty%2Futil-linux.git libfdisk: add initializer to geometry Signed-off-by: Karel Zak --- diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index ecf0b3678..5c00164ce 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -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;