summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-06-06 00:38:38 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-06-06 00:38:38 +0000
commita17619d189242e9cb979f074633a6bbe0482bd94 (patch)
tree71b4fce8a280b92cc8bf81104eb6b956c9324b7d /usr.bin
parent104292be4aabb0bedbce02d40230ff16cd9c34a3 (diff)
Don't double xstrdup.
From mickey. ``i made a booboo'' joris, OK niallo and xsa.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c
index 271707ac17a..13a8f8d6c7c 100644
--- a/usr.bin/cvs/server.c
+++ b/usr.bin/cvs/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.60 2007/05/27 00:06:42 ray Exp $ */
+/* $OpenBSD: server.c,v 1.61 2007/06/06 00:38:37 ray Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -329,9 +329,8 @@ cvs_server_directory(char *data)
if (server_currentdir != NULL)
xfree(server_currentdir);
- server_currentdir = xstrdup(p);
+ server_currentdir = p;
- xfree(p);
xfree(dir);
}