diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-06-06 00:38:38 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-06-06 00:38:38 +0000 |
commit | a17619d189242e9cb979f074633a6bbe0482bd94 (patch) | |
tree | 71b4fce8a280b92cc8bf81104eb6b956c9324b7d /usr.bin | |
parent | 104292be4aabb0bedbce02d40230ff16cd9c34a3 (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.c | 5 |
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); } |