reiserfscore: fix uninitialized variable warning in print_indirect_item
PATCH 7/10 reiserfscore: fix uninitialized variable warning in print_indirect_item
This patch fixes the following warning:
prints.c:403:20: warning: ‘num’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by Jeff Mahoney <[email protected]>
--- reiserfscore/prints.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
reiserfscore/prints.c +1 -1
@@ -384,7 +384,7 @@ void print_indirect_item (FILE * fp, struct buffer_head * bh, int item_num)struct item_head * ih;unsigned int j;__u32 * unp, prev =INT_MAX ; -int num; +int num =0 ; ih =B_N_PITEM_HEAD (bh, item_num); unp = (__u32 *)B_I_PITEM (bh, ih);
Signature · 7 lines
1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html