aboutsummaryrefslogtreecommitdiff
path: root/mailutils/sendmail.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailutils/sendmail.c')
-rw-r--r--mailutils/sendmail.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mailutils/sendmail.c b/mailutils/sendmail.c
index 346de2712..65895f0ec 100644
--- a/mailutils/sendmail.c
+++ b/mailutils/sendmail.c
@@ -166,9 +166,8 @@ static char *angle_address(char *str)
{
char *s, *e;
- trim(str);
- e = last_char_is(str, '>');
- if (e) {
+ e = trim(str);
+ if (e != str && e[-1] == '>') {
s = strrchr(str, '<');
if (s) {
*e = '\0';