=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/co.c,v retrieving revision 1.100 retrieving revision 1.101 diff -u -r1.100 -r1.101 --- src/usr.bin/rcs/co.c 2006/11/10 16:31:29 1.100 +++ src/usr.bin/rcs/co.c 2007/02/01 18:01:42 1.101 @@ -1,4 +1,4 @@ -/* $OpenBSD: co.c,v 1.100 2006/11/10 16:31:29 millert Exp $ */ +/* $OpenBSD: co.c,v 1.101 2007/02/01 18:01:42 millert Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. @@ -518,6 +518,10 @@ if ((bp = rcs_getrev(rfp, frev)) == NULL) { warnx("failed to load revision"); + return (D_ERROR); + } + if ((bp = rcs_kwexp_buf(bp, rfp, frev)) == NULL) { + warnx("failed to expand tags"); return (D_ERROR); }