mirror of https://github.com/ecmwf/eccodes.git
cppcheck warnings
This commit is contained in:
parent
097be89d67
commit
2eb3cdcd14
|
@ -320,6 +320,7 @@ static int unpack_string (grib_accessor* a, char* buffer, size_t *len)
|
|||
}
|
||||
|
||||
*len=rsize;
|
||||
Assert(buffer);
|
||||
memcpy(buffer,start,rsize);
|
||||
buffer[rsize]=0;
|
||||
|
||||
|
|
|
@ -338,7 +338,7 @@ static int grib_load_smart_table(grib_context* c,const char* filename,
|
|||
while(fgets(line,sizeof(line)-1,f))
|
||||
{
|
||||
char* s=line;
|
||||
char* p=line;
|
||||
char* p;
|
||||
|
||||
line[strlen(line)-1]=0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue