Commit 8b3cd3d3 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

streamOpenAppend: call to gribContainersNew() missing (bug fix)

parent 13cb2517
2016-07-02 Uwe Schulzweida
* streamOpenAppend: call to gribContainersNew() missing (bug fix) [Bug #6944]
2016-06-17 Uwe Schulzweida
* netCDF4: added support for attribute type NC_BYTE, NC_UBYTE, NC_USHORT and NC_UINT
......
......@@ -53,12 +53,10 @@ const char *gribapiLibraryVersionString(void)
void gribContainersNew(stream_t * streamptr)
{
int editionNumber = 2;
int editionNumber = (streamptr->filetype == FILETYPE_GRB) ? 1 : 2;
if ( streamptr->filetype == FILETYPE_GRB ) editionNumber = 1;
(void)editionNumber;
#if defined (HAVE_LIBCGRIBEX)
if ( streamptr->filetype == FILETYPE_GRB )
if ( editionNumber == 1 )
{
}
else
......
......@@ -654,6 +654,7 @@ int streamOpenA(const char *filename, const char *filemode, int filetype)
case FILETYPE_GRB2:
{
fileID = gribOpen(filename, filemode);
if ( fileID != CDI_UNDEFID ) gribContainersNew(streamptr);
break;
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment