Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/rmail Shouldn't use += on a variable that we haven't...
details: https://anonhg.NetBSD.org/src/rev/503bb7586e10
branches: trunk
changeset: 581428:503bb7586e10
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Jun 01 15:55:31 2005 +0000
description:
Shouldn't use += on a variable that we haven't initialized yet ...
Found with -Wuninitialized.
diffstat:
libexec/rmail/rmail.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 9777eaa3ff50 -r 503bb7586e10 libexec/rmail/rmail.c
--- a/libexec/rmail/rmail.c Wed Jun 01 15:51:23 2005 +0000
+++ b/libexec/rmail/rmail.c Wed Jun 01 15:55:31 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rmail.c,v 1.20 2004/11/05 22:00:40 dsl Exp $ */
+/* $NetBSD: rmail.c,v 1.21 2005/06/01 15:55:31 lukem Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -36,7 +36,7 @@
#if 0
static char sccsid[] = "@(#)rmail.c 8.3 (Berkeley) 5/15/95";
#else
-__RCSID("$NetBSD: rmail.c,v 1.20 2004/11/05 22:00:40 dsl Exp $");
+__RCSID("$NetBSD: rmail.c,v 1.21 2005/06/01 15:55:31 lukem Exp $");
#endif
#endif /* not lint */
@@ -99,6 +99,7 @@
addrp = NULL; /* XXX gcc */
fplen = fptlen = 0; /* XXX gcc */
+ nfptlen = 0;
debug = 0;
domain = "UUCP"; /* Default "domain". */
while ((ch = getopt(argc, argv, "D:T")) != -1)
Home |
Main Index |
Thread Index |
Old Index