cppcheck error: Uninitialized variable
@@ -393,9 +393,9 @@ static grib_field* grib_read_field(grib_context* c, FILE* fh, grib_file** files,
{
grib_field* field=NULL;
short file_id;
- unsigned char marker ;
- unsigned long offset;
- unsigned long length;
+ unsigned char marker=0;
+ unsigned long offset=0;
+ unsigned long length=0;
*err = grib_read_uchar(fh,&marker);
if(marker == NULL_MARKER) return NULL;
