summaryrefslogtreecommitdiff
path: root/usr.bin/mail
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-02-08 23:40:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-02-08 23:40:36 +0000
commit7105f3a882af27b3a37d2e5b22e6555a061b7657 (patch)
treeeb4becb775bdf83fd9b483cca8c46ea157be2ac2 /usr.bin/mail
parent0c4a701fd12c657a080bb6eda7d167bb78f0e79e (diff)
in getopt() blocks, stop incrementing flag variable which are supposed
to just be 0/1 ok miod florian
Diffstat (limited to 'usr.bin/mail')
-rw-r--r--usr.bin/mail/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mail/main.c b/usr.bin/mail/main.c
index 350b05848ad..4d4c2f529d5 100644
--- a/usr.bin/mail/main.c
+++ b/usr.bin/mail/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.30 2015/01/24 20:32:46 millert Exp $ */
+/* $OpenBSD: main.c,v 1.31 2015/02/08 23:40:34 deraadt Exp $ */
/* $NetBSD: main.c,v 1.7 1997/05/13 06:15:57 mikel Exp $ */
/*
@@ -128,7 +128,7 @@ main(int argc, char **argv)
/*
* User doesn't want to source /usr/lib/Mail.rc
*/
- nosrc++;
+ nosrc = 1;
break;
case 'N':
/*