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
0aed411c
...
0aed411cf2f592b699ff024a2ff94efe762daa8d
authored
2005-10-30 10:02:36 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mail_if): Fix 'r' condition
(mail_else): Fix handling of nested ifs
1 parent
8be6553f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
mail/if.c
mail/if.c
View file @
0aed411
...
...
@@ -111,7 +111,7 @@ mail_if (int argc, char **argv)
cond
=
strcmp
(
mode
,
"send"
)
==
0
;
break
;
case
'r'
:
/* Read mode */
cond
=
strcmp
(
mode
,
"
send"
)
!
=
0
;
cond
=
strcmp
(
mode
,
"
read"
)
=
=
0
;
break
;
case
't'
:
/* Stdout is a terminal device? */
cond
=
isatty
(
fileno
(
stdout
));
...
...
@@ -138,7 +138,7 @@ mail_else (int argc ARG_UNUSED, char **argv ARG_UNUSED)
return
1
;
}
cond
=
_cond_pop
();
if
(
_cond_level
==
0
)
if
(
if_cond
()
)
cond
=
!
cond
;
_cond_push
(
cond
);
return
0
;
...
...
Please
register
or
sign in
to post a comment