artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37da446
)
Remove NULL check before free; Fritjof Bornebusch.
author
nicm
<nicm@openbsd.org>
Wed, 17 Jun 2015 08:13:31 +0000
(08:13 +0000)
committer
nicm
<nicm@openbsd.org>
Wed, 17 Jun 2015 08:13:31 +0000
(08:13 +0000)
usr.bin/rcs/ci.c
patch
|
blob
|
history
diff --git
a/usr.bin/rcs/ci.c
b/usr.bin/rcs/ci.c
index
c91630a
..
1b784cb
100644
(file)
--- a/
usr.bin/rcs/ci.c
+++ b/
usr.bin/rcs/ci.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ci.c,v 1.22
0 2015/06/13 20:15:2
1 nicm Exp $ */
+/* $OpenBSD: ci.c,v 1.22
1 2015/06/17 08:13:3
1 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':