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 <jeffm@suse.com>
This commit is contained in:
Jeff Mahoney committed 2012-10-11 15:57:26 -04:00
1 parent b337b2b190
commit f8b66d8084
1 file changed
+1 -1
+1 -1
View File
@@ -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);