Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
c6c88649
Commit
c6c88649
authored
Jul 06, 2012
by
Uwe Schulzweida
Browse files
No commit message
No commit message
parent
ed8c5fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream.c
View file @
c6c88649
...
...
@@ -605,6 +605,7 @@ int streamOpen(const char *filename, const char *filemode, int filetype)
case
FILETYPE_GRB2
:
{
fileID
=
gribOpen
(
filename
,
filemode
);
if
(
fileID
<
0
)
fileID
=
CDI_ESYSTEM
;
record
=
(
Record
*
)
malloc
(
sizeof
(
Record
));
record
->
buffer
=
NULL
;
break
;
...
...
@@ -674,7 +675,7 @@ int streamOpen(const char *filename, const char *filemode, int filetype)
streamptr
=
stream_new_entry
();
streamID
=
streamptr
->
self
;
if
(
streamID
<
0
)
return
(
CDI_ELIMIT
);
if
(
streamID
<
0
)
return
(
CDI_ELIMIT
);
streamptr
->
record
=
record
;
streamptr
->
filetype
=
filetype
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment