[PATCH] db: fix uninitialised variable warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Dave Chinner <dchinner@xxxxxxxxxx>

New versions of gcc barf on the conversion table code in
db/convert.c. Shut it up by initialising the conversion array.

Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx>
---
 db/convert.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db/convert.c b/db/convert.c
index 09f9225..a337abe 100644
--- a/db/convert.c
+++ b/db/convert.c
@@ -157,7 +157,7 @@ convert_f(int argc, char **argv)
 {
 	ctype_t		c;
 	int		conmask;
-	cval_t		cvals[NCTS];
+	cval_t		cvals[NCTS] = {};
 	int		i;
 	int		mask;
 	__uint64_t	v;
-- 
2.1.4

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs



[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux