[PATCH] db: fix uninitialised variable warnings
Brian Foster
bfoster at redhat.com
Fri Aug 7 06:37:06 CDT 2015
On Thu, Aug 06, 2015 at 08:49:52AM +1000, Dave Chinner wrote:
> From: Dave Chinner <dchinner at redhat.com>
>
> 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 at redhat.com>
> ---
Reviewed-by: Brian Foster <bfoster at redhat.com>
> 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 at oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
More information about the xfs
mailing list