Commit 848d1c69 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

streamOpenAppend: check streamptr

parent 3621411d
......@@ -1017,9 +1017,11 @@ int streamOpenAppend(const char *filename)
streamID = streamOpenA(filename, "a", filetype);
streamptr = stream_to_pointer(streamID);
streamptr->byteorder = byteorder;
if ( streamID >= 0 )
{
streamptr = stream_to_pointer(streamID);
streamptr->byteorder = byteorder;
}
return (streamID);
}
......
Supports Markdown
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