From b22181768d54bd604f723442e733c721db8dc1f1 Mon Sep 17 00:00:00 2001 From: Russ Rew Date: Fri, 28 Mar 2014 22:03:10 -0600 Subject: [PATCH] Fix a few coverity warnings. --- ncdump/nccopy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ncdump/nccopy.c b/ncdump/nccopy.c index 264d9cd21..56ec46d96 100644 --- a/ncdump/nccopy.c +++ b/ncdump/nccopy.c @@ -534,7 +534,8 @@ copy_var_specials(int igrp, int varid, int ogrp, int o_varid) } { /* handle compression parameters, copying from input, overriding * with command-line options */ - int shuffle_in, deflate_in, deflate_level_in, shuffle_out, deflate_out, deflate_level_out; + int shuffle_in=0, deflate_in=0, deflate_level_in=0; + int shuffle_out, deflate_out, deflate_level_out; if(option_deflate_level != 0) { NC_CHECK(nc_inq_var_deflate(igrp, varid, &shuffle_in, &deflate_in, &deflate_level_in)); if(option_deflate_level == -1) { /* not specified, copy input compression and shuffling */