diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-06-17 08:13:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-06-17 08:13:32 +0000 |
commit | 14be51b84ce8dcefdccc19be8eeb1e59afa22ced (patch) | |
tree | 8e1686f49e8da1c0f45ccf2cc9788668d5d30f49 /usr.bin/rcs | |
parent | 3f4efea333ebc56754197901c6545957edf0cbe4 (diff) |
Remove NULL check before free; Fritjof Bornebusch.
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/ci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index c91630a1ee8..1b784cb13e0 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.220 2015/06/13 20:15:21 nicm Exp $ */ +/* $OpenBSD: ci.c,v 1.221 2015/06/17 08:13:31 nicm Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -210,8 +210,7 @@ checkin_main(int argc, char **argv) printf("%s\n", rcs_version); exit(0); case 'w': - if (pb.author != NULL) - free(pb.author); + free(pb.author); pb.author = xstrdup(rcs_optarg); break; case 'x': |