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
7930774b
...
7930774b90e9fe211f85e7219e62feca198fe8d8
authored
2002-11-13 08:28:06 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(util_do_command): Interpret empty line as "next" command only when in
interactive mode.
1 parent
e2e7e806
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
mail/util.c
mail/util.c
View file @
7930774
...
...
@@ -104,12 +104,17 @@ util_do_command (const char *c, ...)
return
0
;
}
/* Hitting return i.e. no command, is equivalent to next
according to the POSIX spec. */
if
(
cmd
[
0
]
==
'\0'
)
{
free
(
cmd
);
/* Hitting return i.e. no command, is equivalent to next
according to the POSIX spec. Note, that this applies
to interactive state only. */
if
(
interactive
)
cmd
=
strdup
(
"next"
);
else
return
0
;
}
if
(
argcv_get
(
cmd
,
delim
,
NULL
,
&
argc
,
&
argv
)
==
0
)
...
...
Please
register
or
sign in
to post a comment