=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/rcsnum.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/cvs/rcsnum.c 2005/03/05 05:58:39 1.9 --- src/usr.bin/cvs/rcsnum.c 2005/04/13 16:25:02 1.10 *************** *** 1,4 **** ! /* $OpenBSD: rcsnum.c,v 1.9 2005/03/05 05:58:39 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: rcsnum.c,v 1.10 2005/04/13 16:25:02 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 99,104 **** --- 99,108 ---- /* * rcsnum_tostr() + * + * Format the RCS number into a human-readable dot-separated + * representation and store the resulting string in , which is of size + * . * Returns a pointer to the start of on success, or NULL on failure. */ char* *************** *** 107,113 **** u_int i; char tmp[8]; ! if (nump->rn_len == 0) { buf[0] = '\0'; return (buf); } --- 111,117 ---- u_int i; char tmp[8]; ! if ((nump == NULL) || (nump->rn_len == 0)) { buf[0] = '\0'; return (buf); }