[g2clib] Fix uninitialized variables

This commit is contained in:
Roland Winklmeier
2016-01-11 17:54:36 +01:00
parent 7d88bdd43b
commit 25d548c195
2 changed files with 3 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ void compack(g2float *fld,g2int ndpts,g2int idrsnum,g2int *idrstmpl,
static g2int simple_alg = 0;
static g2float alog2=0.69314718; // ln(2.0)
static g2int one=1;
ival1 = 0;
bscale=int_power(2.0,-idrstmpl[1]);
dscale=int_power(10.0,idrstmpl[2]);

View File

@@ -80,6 +80,8 @@ void misspack(g2float *fld,g2int ndpts,g2int idrsnum,g2int *idrstmpl,
static g2int simple_alg = 0;
static g2float alog2=0.69314718; // ln(2.0)
static g2int one=1;
ival1 = 0;
nbitsd = 0;
(void) ij;