All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 07/10] reiserfscore: fix uninitialized variable warning in print_indirect_item
@ 2012-10-11 17:37 Jeff Mahoney
  0 siblings, 0 replies; only message in thread
From: Jeff Mahoney @ 2012-10-11 17:37 UTC (permalink / raw)
  To: reiserfs-devel

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>
---
 reiserfscore/prints.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reiserfscore/prints.c b/reiserfscore/prints.c
index ffe86fc..95e3014 100644
--- a/reiserfscore/prints.c
+++ b/reiserfscore/prints.c
@@ -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);
-- 
1.7.10.4


--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-11 17:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-11 17:37 [PATCH 07/10] reiserfscore: fix uninitialized variable warning in print_indirect_item Jeff Mahoney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.