summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-29 12:23:00 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-01-29 12:23:00 +0000
commit94df645ebfff43be5a8699deed4a7e92af072efb (patch)
treeaa127eff7c10d43f74e5c67be2b5f96835604075 /usr.bin
parent4355b5ab720847f0a02913a16e5884ea7910ef61 (diff)
There is no need to xstrdup() optarg.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c
index 37292753612..e715945ff12 100644
--- a/usr.bin/cvs/add.c
+++ b/usr.bin/cvs/add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: add.c,v 1.86 2008/01/10 10:08:22 tobias Exp $ */
+/* $OpenBSD: add.c,v 1.87 2008/01/29 12:22:59 tobias Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
* Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org>
@@ -72,7 +72,7 @@ cvs_add(int argc, char **argv)
(void)xsnprintf(kbuf, sizeof(kbuf), "-k%s", koptstr);
break;
case 'm':
- logmsg = xstrdup(optarg);
+ logmsg = optarg;
break;
default:
fatal("%s", cvs_cmd_add.cmd_synopsis);