summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcsnum.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/rcsnum.c')
-rw-r--r--usr.bin/cvs/rcsnum.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/cvs/rcsnum.c b/usr.bin/cvs/rcsnum.c
index 62bf2b2e7d7..db74093c87e 100644
--- a/usr.bin/cvs/rcsnum.c
+++ b/usr.bin/cvs/rcsnum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsnum.c,v 1.51 2008/02/09 14:03:20 joris Exp $ */
+/* $OpenBSD: rcsnum.c,v 1.52 2008/03/01 20:03:56 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -82,8 +82,6 @@ rcsnum_parse(const char *str)
if (rcsnum_aton(str, &ep, num) < 0 || *ep != '\0') {
rcsnum_free(num);
num = NULL;
- if (*ep != '\0')
- rcs_errno = RCS_ERR_BADNUM;
}
return (num);
@@ -242,10 +240,8 @@ rcsnum_aton(const char *str, char **ep, RCSNUM *nump)
break;
if (*sp == '.') {
- if (nump->rn_len >= RCSNUM_MAXLEN - 1) {
- rcs_errno = RCS_ERR_BADNUM;
+ if (nump->rn_len >= RCSNUM_MAXLEN - 1)
goto rcsnum_aton_failed;
- }
nump->rn_len++;
nump->rn_id = xrealloc(nump->rn_id,