mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Correct a potential null pointer dereference.
This commit is contained in:
parent
267b26f123
commit
0ff269a4e0
@ -494,6 +494,7 @@ parseVlenField(NCD4parser* parser, NCD4node* container, ncxml_t xml, NCD4node**
|
||||
if((ret = parseVariable(parser,container,x,&field)))
|
||||
goto done;
|
||||
}
|
||||
if(field == NULL) {ret = NC_EBADTYPE; goto done;}
|
||||
if(fieldp) *fieldp = field;
|
||||
done:
|
||||
return THROW(ret);
|
||||
|
Loading…
Reference in New Issue
Block a user