mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 02:05:43 +08:00
[g2clib] Fix uninitialized variables
This commit is contained in:
@@ -79,6 +79,7 @@ void compack(g2float *fld,g2int ndpts,g2int idrsnum,g2int *idrstmpl,
|
|||||||
static g2int simple_alg = 0;
|
static g2int simple_alg = 0;
|
||||||
static g2float alog2=0.69314718; // ln(2.0)
|
static g2float alog2=0.69314718; // ln(2.0)
|
||||||
static g2int one=1;
|
static g2int one=1;
|
||||||
|
ival1 = 0;
|
||||||
|
|
||||||
bscale=int_power(2.0,-idrstmpl[1]);
|
bscale=int_power(2.0,-idrstmpl[1]);
|
||||||
dscale=int_power(10.0,idrstmpl[2]);
|
dscale=int_power(10.0,idrstmpl[2]);
|
||||||
|
|||||||
@@ -80,6 +80,8 @@ void misspack(g2float *fld,g2int ndpts,g2int idrsnum,g2int *idrstmpl,
|
|||||||
static g2int simple_alg = 0;
|
static g2int simple_alg = 0;
|
||||||
static g2float alog2=0.69314718; // ln(2.0)
|
static g2float alog2=0.69314718; // ln(2.0)
|
||||||
static g2int one=1;
|
static g2int one=1;
|
||||||
|
ival1 = 0;
|
||||||
|
nbitsd = 0;
|
||||||
|
|
||||||
(void) ij;
|
(void) ij;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user