mirror of https://github.com/ecmwf/eccodes.git
Cosmetics
This commit is contained in:
parent
f96369ccb3
commit
db48fe01c4
|
@ -1775,21 +1775,15 @@ grib_accessor* grib_accessor_bufr_data_array_t::create_accessor_from_descriptor(
|
|||
long ide, long subset, int add_dump_flag, int add_coord_flag,
|
||||
int count, int add_extra_attributes)
|
||||
{
|
||||
char code[10] = {
|
||||
0,
|
||||
};
|
||||
char code[10] = {0,};
|
||||
char* temp_str = NULL;
|
||||
int idx = 0;
|
||||
unsigned long flags = GRIB_ACCESSOR_FLAG_READ_ONLY;
|
||||
grib_action operatorCreator = {
|
||||
0,
|
||||
};
|
||||
grib_action operatorCreator = {0,};
|
||||
grib_accessor* accessor = NULL;
|
||||
grib_accessor_bufr_data_element_t* elementAccessor = NULL;
|
||||
grib_accessor_variable_t* variableAccessor = NULL;
|
||||
grib_action creator = {
|
||||
0,
|
||||
};
|
||||
grib_action creator = {0,};
|
||||
creator.op = (char*)"bufr_data_element";
|
||||
creator.name_space = (char*)"";
|
||||
creator.set = 0;
|
||||
|
|
|
@ -94,9 +94,7 @@ void grib_accessor_expanded_descriptors_t::__expand(bufr_descriptors_array* unex
|
|||
bufr_descriptor* vv = NULL;
|
||||
/* ECC-1422: 'ur' is the array of bufr_descriptor pointers for replications.
|
||||
* Its max size is X (from FXY) which is 6 bits so no need for malloc */
|
||||
bufr_descriptor* ur[65] = {
|
||||
0,
|
||||
};
|
||||
bufr_descriptor* ur[65] = {0,};
|
||||
bufr_descriptor* urc = NULL;
|
||||
size_t idx = 0;
|
||||
bufr_descriptor* u0 = NULL;
|
||||
|
|
|
@ -94,9 +94,7 @@ int grib_accessor_group_t::unpack_string(char* val, size_t* len)
|
|||
|
||||
int grib_accessor_group_t::unpack_long(long* v, size_t* len)
|
||||
{
|
||||
char val[1024] = {
|
||||
0,
|
||||
};
|
||||
char val[1024] = {0,};
|
||||
size_t l = sizeof(val);
|
||||
size_t i = 0;
|
||||
char* last = NULL;
|
||||
|
|
|
@ -15,9 +15,7 @@ grib_accessor* grib_accessor_library_version = &_grib_accessor_library_version;
|
|||
|
||||
int grib_accessor_library_version_t::unpack_string(char* val, size_t* len)
|
||||
{
|
||||
char result[30] = {
|
||||
0,
|
||||
};
|
||||
char result[30] = {0,};
|
||||
size_t size = 0;
|
||||
|
||||
int major = ECCODES_MAJOR_VERSION;
|
||||
|
|
|
@ -32,9 +32,7 @@ long grib_accessor_sexagesimal2decimal_t::get_native_type()
|
|||
int grib_accessor_sexagesimal2decimal_t::unpack_string(char* val, size_t* len)
|
||||
{
|
||||
int err = 0;
|
||||
char buff[512] = {
|
||||
0,
|
||||
};
|
||||
char buff[512] = {0,};
|
||||
size_t length = 0;
|
||||
size_t size = sizeof(buff);
|
||||
char* p = 0;
|
||||
|
|
|
@ -48,9 +48,7 @@ int grib_accessor_smart_table_column_t::unpack_string_array(char** buffer, size_
|
|||
size_t size = 1;
|
||||
long* code;
|
||||
int err = GRIB_SUCCESS;
|
||||
char tmp[1024] = {
|
||||
0,
|
||||
};
|
||||
char tmp[1024] = {0,};
|
||||
int i = 0;
|
||||
|
||||
tableAccessor = (grib_accessor_smart_table_t*)grib_find_accessor(grib_handle_of_accessor(this), smartTable_);
|
||||
|
|
Loading…
Reference in New Issue