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
a47b303b
...
a47b303b1a6187001cfd5bc5ec6df25d6f6ffb98
authored
2004-08-24 07:59:53 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(util_do_command): Fixed coredump on unparseable input strings.
1 parent
3fe09d98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
mail/util.c
mail/util.c
View file @
a47b303
...
...
@@ -121,7 +121,7 @@ util_do_command (const char *c, ...)
return
0
;
}
if
(
argcv_get
(
cmd
,
delim
,
NULL
,
&
argc
,
&
argv
)
==
0
)
if
(
argcv_get
(
cmd
,
delim
,
NULL
,
&
argc
,
&
argv
)
==
0
&&
argc
>
0
)
{
struct
mail_command_entry
entry
;
char
*
p
;
...
...
@@ -152,10 +152,14 @@ util_do_command (const char *c, ...)
}
else
{
if
(
argc
)
util_error
(
_
(
"Unknown command: %s"
),
argv
[
0
]);
else
util_error
(
_
(
"Invalid command"
));
status
=
1
;
}
argcv_free
(
argc
,
argv
);
return
status
;
}
...
...
Please
register
or
sign in
to post a comment