diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-09-26 15:55:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-09-26 15:55:23 +0000 |
commit | 33000906eeb6c0b4a7228bfb8857482305665cf3 (patch) | |
tree | ce577c18b8f28438d64a462882b0be7e94c3d4ee /bin | |
parent | 2d12a83a5ad4835d5d339f511b520ec93e78b423 (diff) |
free(NULL) works; jjy2+@pitt.edu
Diffstat (limited to 'bin')
-rw-r--r-- | bin/rmail/rmail.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/rmail/rmail.c b/bin/rmail/rmail.c index 25e51311da0..53ab74139a8 100644 --- a/bin/rmail/rmail.c +++ b/bin/rmail/rmail.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rmail.c,v 1.18 2003/09/24 21:11:46 deraadt Exp $ */ +/* $OpenBSD: rmail.c,v 1.19 2003/09/26 15:55:22 deraadt Exp $ */ /* $NetBSD: rmail.c,v 1.8 1995/09/07 06:51:50 jtc Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rmail.c 8.3 (Berkeley) 5/15/95"; #else -static char rcsid[] = "$OpenBSD: rmail.c,v 1.18 2003/09/24 21:11:46 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rmail.c,v 1.19 2003/09/26 15:55:22 deraadt Exp $"; #endif #endif /* not lint */ @@ -223,8 +223,7 @@ main(int argc, char *argv[]) *p = '\0'; if (*addrp == '\0') addrp = "<>"; - if (from_user != NULL) - free(from_user); + free(from_user); if ((from_user = strdup(addrp)) == NULL) err(EX_TEMPFAIL, NULL); |