summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/root.c')
-rw-r--r--usr.bin/cvs/root.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/cvs/root.c b/usr.bin/cvs/root.c
index 9ca716e0596..99258fbc87f 100644
--- a/usr.bin/cvs/root.c
+++ b/usr.bin/cvs/root.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: root.c,v 1.42 2007/09/10 14:06:14 joris Exp $ */
+/* $OpenBSD: root.c,v 1.43 2007/09/10 19:11:08 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -133,12 +133,10 @@ cvsroot_parse(const char *str)
pp = strchr(sp, ':');
if (pp != NULL) {
*(pp++) = '\0';
-
- i = strtonum(pp, 1, 65535, &errstr);
+ root->cr_port = strtonum(pp, 1, 65535, &errstr);
if (errstr != NULL)
fatal("port specification in CVSROOT is %s", errstr);
- root->cr_port = pp;
}
root->cr_host = sp;