=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/import.c,v retrieving revision 1.95 retrieving revision 1.96 diff -u -r1.95 -r1.96 --- src/usr.bin/cvs/import.c 2008/06/10 20:30:17 1.95 +++ src/usr.bin/cvs/import.c 2008/06/14 04:34:08 1.96 @@ -1,4 +1,4 @@ -/* $OpenBSD: import.c,v 1.95 2008/06/10 20:30:17 joris Exp $ */ +/* $OpenBSD: import.c,v 1.96 2008/06/14 04:34:08 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -382,6 +382,9 @@ RCSNUM *newrev, *rev, *brev; cvs_log(LP_TRACE, "import_update(%s)", cf->file_path); + + if (cf->file_rcs->rf_head == NULL) + fatal("no head revision in RCS file for `%s'", cf->file_path); if ((rev = rcs_translate_tag(import_branch, cf->file_rcs)) == NULL) fatal("import_update: could not translate tag `%s'",