From a17619d189242e9cb979f074633a6bbe0482bd94 Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Wed, 6 Jun 2007 00:38:38 +0000 Subject: Don't double xstrdup. From mickey. ``i made a booboo'' joris, OK niallo and xsa. --- usr.bin/cvs/server.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr.bin') 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 * @@ -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); } -- cgit v1.2.3