=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/rcs.c,v retrieving revision 1.194 retrieving revision 1.195 diff -c -r1.194 -r1.195 *** src/usr.bin/cvs/rcs.c 2007/01/12 17:25:33 1.194 --- src/usr.bin/cvs/rcs.c 2007/01/12 19:28:12 1.195 *************** *** 1,4 **** ! /* $OpenBSD: rcs.c,v 1.194 2007/01/12 17:25:33 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: rcs.c,v 1.195 2007/01/12 19:28:12 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 592,604 **** rcs_head_get(RCSFILE *file) { char br[16]; if (file->rf_branch != NULL) { rcsnum_tostr(file->rf_branch, br, sizeof(br)); ! return (rcs_translate_tag(br, file)); } ! return (file->rf_head); } /* --- 592,608 ---- rcs_head_get(RCSFILE *file) { char br[16]; + RCSNUM *rev; if (file->rf_branch != NULL) { rcsnum_tostr(file->rf_branch, br, sizeof(br)); ! rev = rcs_translate_tag(br, file); ! } else { ! rev = rcsnum_alloc(); ! rcsnum_cpy(file->rf_head, rev, 0); } ! return (rev); } /*