[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fix for coredump on files without ,v
From: |
Paul Edwards |
Subject: |
fix for coredump on files without ,v |
Date: |
Sat, 01 Nov 2003 18:53:22 GMT |
This occurs on systems that are configured to not use ",v" as
an extension. ie DOS!!! :-)
BFN. Paul.
Index: find_names.c
===================================================================
RCS file: /cvs/ccvs/src/find_names.c,v
retrieving revision 1.30
diff -c -r1.30 find_names.c
*** find_names.c 24 Sep 2001 15:16:05 -0000 1.30
--- find_names.c 1 Nov 2003 18:50:44 -0000
***************
*** 275,281 ****
char *comma;
comma = strrchr (dp->d_name, ','); /* strip the ,v */
! *comma = '\0';
p = getnode ();
p->type = FILES;
p->key = xstrdup (dp->d_name);
--- 275,281 ----
char *comma;
comma = strrchr (dp->d_name, ','); /* strip the ,v */
! if (comma != NULL) *comma = '\0';
p = getnode ();
p->type = FILES;
p->key = xstrdup (dp->d_name);
- fix for coredump on files without ,v,
Paul Edwards <=