diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-29 12:23:00 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-29 12:23:00 +0000 |
commit | 94df645ebfff43be5a8699deed4a7e92af072efb (patch) | |
tree | aa127eff7c10d43f74e5c67be2b5f96835604075 | |
parent | 4355b5ab720847f0a02913a16e5884ea7910ef61 (diff) |
There is no need to xstrdup() optarg.
-rw-r--r-- | usr.bin/cvs/add.c | 4 |
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); |