Skip to content
GitLab
Menu
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
848d1c69
Commit
848d1c69
authored
Jul 04, 2011
by
Uwe Schulzweida
Browse files
streamOpenAppend: check streamptr
parent
3621411d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream.c
View file @
848d1c69
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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