mirror of https://github.com/ecmwf/eccodes.git
Fix uninitialized variables
This commit is contained in:
parent
c0a4dcee34
commit
009d1c1fb8
|
@ -229,8 +229,8 @@ static grib_accessor* search_by_rank(grib_handle* h, const char* name,const char
|
||||||
static int condition_true(grib_accessor* a,codes_condition* condition) {
|
static int condition_true(grib_accessor* a,codes_condition* condition) {
|
||||||
int ret=0;
|
int ret=0;
|
||||||
size_t size=1;
|
size_t size=1;
|
||||||
long lval;
|
long lval=0;
|
||||||
double dval;
|
double dval=0;
|
||||||
switch (condition->rightType) {
|
switch (condition->rightType) {
|
||||||
case GRIB_TYPE_LONG:
|
case GRIB_TYPE_LONG:
|
||||||
grib_unpack_long(a,&lval,&size);
|
grib_unpack_long(a,&lval,&size);
|
||||||
|
|
Loading…
Reference in New Issue