Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
c7246a16
...
c7246a16910aa37caa79a83a678e6c5da8193a5d
authored
2003-01-22 20:22:12 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(stream_sequential_readline, stream_strerror): Check for stream == NULL.
1 parent
6639ff69
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
mailbox/stream.c
mailbox/stream.c
View file @
c7246a1
...
...
@@ -686,6 +686,8 @@ stream_sequential_readline (stream_t stream, char *buf, size_t size,
int
stream_sequential_write
(
stream_t
stream
,
char
*
buf
,
size_t
size
)
{
if
(
stream
==
NULL
)
return
EINVAL
;
while
(
size
>
0
)
{
size_t
sz
;
...
...
@@ -703,6 +705,8 @@ stream_sequential_write (stream_t stream, char *buf, size_t size)
int
stream_strerror
(
stream_t
stream
,
const
char
**
p
)
{
if
(
stream
==
NULL
)
return
EINVAL
;
if
(
stream
->
_strerror
)
return
stream
->
_strerror
(
stream
,
p
);
return
ENOSYS
;
...
...
Please
register
or
sign in
to post a comment