xfsprogs/xfsprogs-2.8.11-1-uninitialized.diff

12 lines
264 B
Diff

--- libxfs/xfs_ialloc_btree.c
+++ libxfs/xfs_ialloc_btree.c
@@ -234,6 +234,8 @@
*/
*bnop = nbno;
if (nbno != NULLAGBLOCK) {
+ nrec.ir_free = 0; /* make gcc happy... */
+ nrec.ir_freecount = 0;
*recp = nrec; /* INT_: struct copy */
*curp = ncur;
}